From: Christian Dywan Date: Sun, 30 Oct 2011 13:42:52 +0000 (+0100) Subject: Only show crash dialog if session isn't empty X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dee11c0b77d64ad1ee8ff0f658073e1e7bbf67a;p=midori Only show crash dialog if session isn't empty Fixes: https://bugs.launchpad.net/midori/+bug/830645 --- diff --git a/midori/main.c b/midori/main.c index 81dabd2e..4ee4d3cc 100644 --- a/midori/main.c +++ b/midori/main.c @@ -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)