diff --git a/components/lazcontrols/listfilteredit.pas b/components/lazcontrols/listfilteredit.pas index 901779ffec..492145f86c 100644 --- a/components/lazcontrols/listfilteredit.pas +++ b/components/lazcontrols/listfilteredit.pas @@ -143,8 +143,7 @@ begin if Assigned(fFilteredListbox) then begin fFilteredListbox.RemoveFreeNotification(Self); - InternalSetFilter(''); - ApplyFilter(True); + ForceFilter(''); end; fFilteredListbox:=AValue; if Assigned(fFilteredListbox) then diff --git a/components/lazcontrols/listviewfilteredit.pas b/components/lazcontrols/listviewfilteredit.pas index 4119c793ca..af8eff4d3f 100644 --- a/components/lazcontrols/listviewfilteredit.pas +++ b/components/lazcontrols/listviewfilteredit.pas @@ -154,8 +154,7 @@ begin if Assigned(fFilteredListview) then begin fFilteredListview.RemoveFreeNotification(Self); - InternalSetFilter(''); - ApplyFilter(True); + ForceFilter(''); end; fFilteredListview := AValue; if Assigned(fFilteredListview) then diff --git a/components/lazcontrols/treefilteredit.pas b/components/lazcontrols/treefilteredit.pas index 238cc24f57..efc5bef006 100644 --- a/components/lazcontrols/treefilteredit.pas +++ b/components/lazcontrols/treefilteredit.pas @@ -727,8 +727,7 @@ begin begin fFilteredTreeview.RemoveFreeNotification(Self); fFilteredTreeview.RemoveHandlerOnBeforeDestruction(@OnBeforeTreeDestroy); - InternalSetFilter(''); - ApplyFilter(True); + ForceFilter(''); end; fFilteredTreeview := AValue; if fFilteredTreeview <> nil then