]> spindle.queued.net Git - midori/commitdiff
Closing diagnostic dialogue should cancel startup
authorChristian Dywan <christian@twotoasts.de>
Thu, 28 Apr 2011 23:52:14 +0000 (01:52 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 28 Apr 2011 23:52:14 +0000 (01:52 +0200)
midori/main.c

index 41683a1b8724188951313d4c922e923951542d49..e95fca28e664ca90359431e33c7f9ad0844fc081 100644 (file)
@@ -2547,8 +2547,10 @@ main (int    argc,
     if (diagnostic_dialog)
     {
         GtkWidget* dialog = midori_create_diagnostic_dialog (settings, _session);
-        gtk_dialog_run (GTK_DIALOG (dialog));
+        gint response = gtk_dialog_run (GTK_DIALOG (dialog));
         gtk_widget_destroy (dialog);
+        if (response == GTK_RESPONSE_DELETE_EVENT)
+            return 0;
     }
     midori_startup_timer ("Signal setup: \t%f");