mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:19:26 +02:00
LCL: Apply the filter in FilterEdit.ForceFilter only when data has changed.
git-svn-id: trunk@45463 -
This commit is contained in:
parent
8197d8ec37
commit
5eabca2e10
@ -1911,8 +1911,10 @@ function TCustomControlFilterEdit.ForceFilter(AFilter: String): String;
|
||||
// Apply a new filter immediately without waiting for idle. Returns the previous filter.
|
||||
begin
|
||||
Result := FFilter;
|
||||
FFilter := AFilter;
|
||||
ApplyFilter(True);
|
||||
if fFilter <> AFilter then begin
|
||||
FFilter := AFilter;
|
||||
ApplyFilter(True);
|
||||
end;
|
||||
end;
|
||||
|
||||
function TCustomControlFilterEdit.GetDefaultGlyphName: String;
|
||||
|
Loading…
Reference in New Issue
Block a user