IDEIntf: do not dock designer forms for now, bug #17130

git-svn-id: trunk@28041 -
This commit is contained in:
mattias 2010-11-02 15:51:49 +00:00
parent 666f44d859
commit 925ab3b6ad

View File

@ -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)