Only show crash dialog if session isn't empty

Fixes: https://bugs.launchpad.net/midori/+bug/830645
This commit is contained in:
Christian Dywan 2011-10-30 14:42:52 +01:00
parent 0c69e6ff64
commit 7dee11c0b7

View 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)