mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-11 04:53:01 +01: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
|
else
|
||||||
Layout.Form:=AForm;
|
Layout.Form:=AForm;
|
||||||
|
|
||||||
if (IDEDockMaster<>nil) and (FindWithName(AForm.Name)<>nil) then
|
if (IDEDockMaster<>nil) and (not (csDesigning in AForm.ComponentState))
|
||||||
// show dockable if it has a creator
|
and (FindWithName(AForm.Name)<>nil) then
|
||||||
|
// show dockable if it has a creator and is not a designer form
|
||||||
IDEDockMaster.ShowForm(AForm,BringToFront)
|
IDEDockMaster.ShowForm(AForm,BringToFront)
|
||||||
else if Assigned(OnShowForm) then
|
else if Assigned(OnShowForm) then
|
||||||
OnShowForm(Self,AForm,BringToFront)
|
OnShowForm(Self,AForm,BringToFront)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user