mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 17:08:04 +02:00
IDEIntf: ShowForm: dock only forms with a creator, bug #17130
git-svn-id: trunk@28040 -
This commit is contained in:
parent
2bf1c89884
commit
666f44d859
@ -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;
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user