mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 12:59:16 +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.
|
// Apply a new filter immediately without waiting for idle. Returns the previous filter.
|
||||||
begin
|
begin
|
||||||
Result := FFilter;
|
Result := FFilter;
|
||||||
FFilter := AFilter;
|
if fFilter <> AFilter then begin
|
||||||
ApplyFilter(True);
|
FFilter := AFilter;
|
||||||
|
ApplyFilter(True);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TCustomControlFilterEdit.GetDefaultGlyphName: String;
|
function TCustomControlFilterEdit.GetDefaultGlyphName: String;
|
||||||
|
Loading…
Reference in New Issue
Block a user