From 7dee11c0b77d64ad1ee8ff0f658073e1e7bbf67a Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 30 Oct 2011 14:42:52 +0100 Subject: [PATCH] Only show crash dialog if session isn't empty Fixes: https://bugs.launchpad.net/midori/+bug/830645 --- midori/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.39.5