mirror of https://github.com/GNOME/gimp.git
app: gimp_session_info_dockable_restore(): don't return existing singletons
Instead, return NULL. The singleton dockable can't be restored in this dock because it's already open in another dock.
This commit is contained in:
parent
f37394cd0f
commit
80cf95319e
|
@ -290,6 +290,13 @@ gimp_session_info_dockable_restore (GimpSessionInfoDockable *info,
|
|||
|
||||
if (dockable)
|
||||
{
|
||||
/* gimp_dialog_factory_dockable_new() might return an already
|
||||
* existing singleton dockable, return NULL so our caller won't
|
||||
* try to add it to another dockbook
|
||||
*/
|
||||
if (gimp_dockable_get_dockbook (GIMP_DOCKABLE (dockable)))
|
||||
return NULL;
|
||||
|
||||
gimp_dockable_set_locked (GIMP_DOCKABLE (dockable), info->locked);
|
||||
gimp_dockable_set_tab_style (GIMP_DOCKABLE (dockable), info->tab_style);
|
||||
|
||||
|
|
Loading…
Reference in New Issue