mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-31 06:12:38 +02:00
LCL: Disconnect OnIdle handler of FilterEdit when the control is destroyed. Issue #31893.
git-svn-id: trunk@55058 -
This commit is contained in:
parent
649fcd18cd
commit
6dbb82d795
@ -221,6 +221,7 @@ type
|
||||
ItemData: Pointer): Boolean;
|
||||
function DoDefaultFilterItem(const ACaption, FilterLC: string;
|
||||
const ItemData: Pointer): Boolean; virtual;
|
||||
procedure DestroyWnd; override;
|
||||
procedure EditKeyDown(var Key: Word; Shift: TShiftState); override;
|
||||
procedure EditChange; override;
|
||||
procedure ButtonClick; override;
|
||||
@ -1117,6 +1118,12 @@ begin
|
||||
Result := (FilterLC='') or (Pos(FilterLC,UTF8LowerCase(ACaption))>0);
|
||||
end;
|
||||
|
||||
procedure TCustomControlFilterEdit.DestroyWnd;
|
||||
begin
|
||||
IdleConnected:=false;
|
||||
inherited DestroyWnd;
|
||||
end;
|
||||
|
||||
function TCustomControlFilterEdit.DoFilterItem(const ACaption,
|
||||
FilterLC: string; ItemData: Pointer): Boolean;
|
||||
var
|
||||
|
Loading…
Reference in New Issue
Block a user