mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-26 11:27:20 +01:00
LazControls: Reset filtering correctly by FilterEdits when the control is detached. Issue #41321.
This commit is contained in:
parent
cf948b040d
commit
e8fa62c8e7
@ -143,8 +143,7 @@ begin
|
|||||||
if Assigned(fFilteredListbox) then
|
if Assigned(fFilteredListbox) then
|
||||||
begin
|
begin
|
||||||
fFilteredListbox.RemoveFreeNotification(Self);
|
fFilteredListbox.RemoveFreeNotification(Self);
|
||||||
InternalSetFilter('');
|
ForceFilter('');
|
||||||
ApplyFilter(True);
|
|
||||||
end;
|
end;
|
||||||
fFilteredListbox:=AValue;
|
fFilteredListbox:=AValue;
|
||||||
if Assigned(fFilteredListbox) then
|
if Assigned(fFilteredListbox) then
|
||||||
|
|||||||
@ -154,8 +154,7 @@ begin
|
|||||||
if Assigned(fFilteredListview) then
|
if Assigned(fFilteredListview) then
|
||||||
begin
|
begin
|
||||||
fFilteredListview.RemoveFreeNotification(Self);
|
fFilteredListview.RemoveFreeNotification(Self);
|
||||||
InternalSetFilter('');
|
ForceFilter('');
|
||||||
ApplyFilter(True);
|
|
||||||
end;
|
end;
|
||||||
fFilteredListview := AValue;
|
fFilteredListview := AValue;
|
||||||
if Assigned(fFilteredListview) then
|
if Assigned(fFilteredListview) then
|
||||||
|
|||||||
@ -727,8 +727,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
fFilteredTreeview.RemoveFreeNotification(Self);
|
fFilteredTreeview.RemoveFreeNotification(Self);
|
||||||
fFilteredTreeview.RemoveHandlerOnBeforeDestruction(@OnBeforeTreeDestroy);
|
fFilteredTreeview.RemoveHandlerOnBeforeDestruction(@OnBeforeTreeDestroy);
|
||||||
InternalSetFilter('');
|
ForceFilter('');
|
||||||
ApplyFilter(True);
|
|
||||||
end;
|
end;
|
||||||
fFilteredTreeview := AValue;
|
fFilteredTreeview := AValue;
|
||||||
if fFilteredTreeview <> nil then
|
if fFilteredTreeview <> nil then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user