]> spindle.queued.net Git - midori/commitdiff
Only show crash dialog if session isn't empty
authorChristian Dywan <christian@twotoasts.de>
Sun, 30 Oct 2011 13:42:52 +0000 (14:42 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 30 Oct 2011 13:42:52 +0000 (14:42 +0100)
Fixes: https://bugs.launchpad.net/midori/+bug/830645
midori/main.c

index 81dabd2e05ce0558c4b5b950213fe501d06bc62d..4ee4d3cc8df5a80a032b0ca3ffb3f8f2079133e5 100644 (file)
@@ -2558,7 +2558,9 @@ main (int    argc,
     else
         g_file_set_contents (config_file, "RUNNING", -1, NULL);
 
-    if (back_from_crash && katze_object_get_boolean (settings, "show-crash-dialog"))
+    if (back_from_crash
+     && katze_object_get_boolean (settings, "show-crash-dialog")
+     && !katze_array_is_empty (_session))
         diagnostic_dialog = TRUE;
 
     if (diagnostic_dialog)