mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 23:25:56 +02:00
IDEIntf: do not dock designer forms for now, bug #17130
git-svn-id: trunk@28041 -
This commit is contained in:
parent
666f44d859
commit
925ab3b6ad
@ -1453,8 +1453,9 @@ begin
|
||||
else
|
||||
Layout.Form:=AForm;
|
||||
|
||||
if (IDEDockMaster<>nil) and (FindWithName(AForm.Name)<>nil) then
|
||||
// show dockable if it has a creator
|
||||
if (IDEDockMaster<>nil) and (not (csDesigning in AForm.ComponentState))
|
||||
and (FindWithName(AForm.Name)<>nil) then
|
||||
// show dockable if it has a creator and is not a designer form
|
||||
IDEDockMaster.ShowForm(AForm,BringToFront)
|
||||
else if Assigned(OnShowForm) then
|
||||
OnShowForm(Self,AForm,BringToFront)
|
||||
|
Loading…
Reference in New Issue
Block a user