mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 17:36:22 +02:00
AnchorDocking: Remove all handlers of Forms when DockMaster is destroyed. Patch by Anton Kavalenka
This commit is contained in:
parent
e67c74ed7e
commit
11191cc81c
@ -3150,6 +3150,11 @@ var
|
|||||||
AControl: TControl;
|
AControl: TControl;
|
||||||
i, j: Integer;
|
i, j: Integer;
|
||||||
begin
|
begin
|
||||||
|
if Assigned(FFormStyles) and not Application.Terminated then
|
||||||
|
for i:=FFormStyles.Count-1 downto 0 do
|
||||||
|
begin
|
||||||
|
FFormStyles[i].Form.RemoveAllHandlersOfObject(Self);
|
||||||
|
end;
|
||||||
Screen.RemoveHandlerFormAdded(@ScreenFormAdded);
|
Screen.RemoveHandlerFormAdded(@ScreenFormAdded);
|
||||||
Screen.RemoveHandlerRemoveForm(@ScreenRemoveForm);
|
Screen.RemoveHandlerRemoveForm(@ScreenRemoveForm);
|
||||||
QueueSimplify:=false;
|
QueueSimplify:=false;
|
||||||
|
Loading…
Reference in New Issue
Block a user