From 1158c4ab59ff79bdab6503a4e069146ff691b074 Mon Sep 17 00:00:00 2001 From: zeljan1 Date: Thu, 3 Apr 2025 18:15:08 +0200 Subject: [PATCH] ListViewFilterEdit: must clear previous items. issue #41559 --- components/lazcontrols/listviewfilteredit.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/components/lazcontrols/listviewfilteredit.pas b/components/lazcontrols/listviewfilteredit.pas index af8eff4d3f..be728de6f6 100644 --- a/components/lazcontrols/listviewfilteredit.pas +++ b/components/lazcontrols/listviewfilteredit.pas @@ -156,6 +156,7 @@ begin fFilteredListview.RemoveFreeNotification(Self); ForceFilter(''); end; + fOriginalData.Clear; fFilteredListview := AValue; if Assigned(fFilteredListview) then begin