mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-15 07:02:37 +02:00
LCL: TControl.Dock: clean up if docking failed
git-svn-id: trunk@23032 -
This commit is contained in:
parent
54e0d61ef7
commit
efd8836a89
@ -3872,6 +3872,8 @@ begin
|
||||
if OldHostDockSite<>nil then OldHostDockSite.DoRemoveDockClient(Self);
|
||||
end;
|
||||
finally
|
||||
if (FHostDockSite<>NewDockSite) and (NewDockSite.FDockClients<>nil) then
|
||||
NewDockSite.FDockClients.Remove(Self);
|
||||
Exclude(FControlState, csDocking);
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user