LCL: editbtn: fix regression after r54191 #0da26ddcc1 (filter wasn't applied).

git-svn-id: trunk@54204 -
This commit is contained in:
ondrej 2017-02-19 21:04:44 +00:00
parent d6ec634142
commit aa9e36d48e

View File

@ -1155,10 +1155,10 @@ end;
procedure TCustomControlFilterEdit.SetFilter(const AValue: string);
begin
if Text=AValue then
Button.Enabled:=AValue<>'';
if fFilter=AValue then
Exit;
Text:=AValue;
fFilter:=AValue;
ApplyFilter;
end;