[gimp] app: Avoid crash when using Windows -> Recently Closed Docks



commit 7e94bb3ef20b85ec67183953521ab997643c7ec7
Author: Martin Nordholts <martinn src gnome org>
Date:   Sat Feb 13 17:16:53 2010 +0100

    app: Avoid crash when using Windows -> Recently Closed Docks
    
    This is not a proper fix for anything, it is just avoidance of a
    crash.

 app/widgets/gimpsessioninfo.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpsessioninfo.c b/app/widgets/gimpsessioninfo.c
index fd03b42..aadd59b 100644
--- a/app/widgets/gimpsessioninfo.c
+++ b/app/widgets/gimpsessioninfo.c
@@ -416,7 +416,8 @@ gimp_session_info_restore (GimpSessionInfo   *info,
   info->p->open   = FALSE;
   info->p->screen = DEFAULT_SCREEN;
 
-  if (! info->p->factory_entry->dockable)
+  if (info->p->factory_entry &&
+      ! info->p->factory_entry->dockable)
     {
       GIMP_LOG (DIALOG_FACTORY, "restoring toplevel \"%s\" (info %p)",
                 info->p->factory_entry->identifier,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]