mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 23:29:25 +02:00
Merged revision(s) 55058 #6dbb82d795 from trunk:
LCL: Disconnect OnIdle handler of FilterEdit when the control is destroyed. Issue #31893. ........ git-svn-id: branches/fixes_1_8@55066 -
This commit is contained in:
parent
41a8c54dd4
commit
6936797b51
@ -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