mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 05:58:06 +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;
|
||||
i, j: Integer;
|
||||
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.RemoveHandlerRemoveForm(@ScreenRemoveForm);
|
||||
QueueSimplify:=false;
|
||||
|
Loading…
Reference in New Issue
Block a user