IDEIntf: ShowForm: dock only forms with a creator, bug #17130

git-svn-id: trunk@28040 -
This commit is contained in:
mattias 2010-11-02 14:06:54 +00:00
parent 2bf1c89884
commit 666f44d859
2 changed files with 3 additions and 2 deletions

View File

@ -29,12 +29,12 @@
ToDo:
- save settings after options dialog
- when opening another project first tab in source editor shows wrong page name
- close source editor and show again
- show anchor editor => too small
- qt: focus on close page
- gtk2: focus on cancel completion box
- gtk2: focus on execute completion box
- gtk2: restore fails for mainidebar
}
unit RegisterAnchorDocking;

View File

@ -1453,7 +1453,8 @@ begin
else
Layout.Form:=AForm;
if IDEDockMaster<>nil then
if (IDEDockMaster<>nil) and (FindWithName(AForm.Name)<>nil) then
// show dockable if it has a creator
IDEDockMaster.ShowForm(AForm,BringToFront)
else if Assigned(OnShowForm) then
OnShowForm(Self,AForm,BringToFront)