@@ -197,6 +197,7 @@ TMainForm = class(TExtForm)
197197 FileNewItem: TMenuItem;
198198 MainMenuHelp: TMenuItem;
199199 FollowForeignKey: TMenuItem;
200+ menuQFdummy: TMenuItem;
200201 N1: TMenuItem;
201202 FileExitItem: TMenuItem;
202203 menuAbout: TMenuItem;
@@ -8222,7 +8223,7 @@ procedure TMainForm.QFvaluesClick(Sender: TObject);
82228223 if DbObj.Size > MaxSize then
82238224 raise Exception.Create(f_('Table too large (>%s), avoiding long running SELECT query', [FormatByteNumber(MaxSize)]));
82248225 Query := Conn.QuoteIdent(ColName)+', COUNT(*) AS c FROM '+DbObj.QuotedName;
8225- if SynMemoFilter.Text <> '' then
8226+ if not SynMemoFilter.Text.Trim.IsEmpty then
82268227 Query := Query + ' WHERE ' + SynMemoFilter.Text + CRLF;
82278228 Query := Query + ' GROUP BY '+Conn.QuoteIdent(ColName)+' ORDER BY c DESC, '+Conn.QuoteIdent(ColName);
82288229 Data := Conn.GetResults(Conn.ApplyLimitClause('SELECT', Query, 30, 0));
@@ -8240,7 +8241,7 @@ procedure TMainForm.QFvaluesClick(Sender: TObject);
82408241 else
82418242 Item.Hint := Conn.QuoteIdent(ColName)+'='+Conn.EscapeString(Data.Col(ColName));
82428243 Item.Caption := StrEllipsis(Item.Hint, 100) + ' (' + FormatNumber(Data.Col('c')) + ')';
8243- if SynMemoFilter.Text <> '' then begin
8244+ if not SynMemoFilter.Text.Trim.IsEmpty then begin
82448245 if Pos(Item.Hint, SynMemoFilter.Text) > 0 then
82458246 Item.Hint := SynMemoFilter.Text
82468247 else
0 commit comments