From eeed4a99f5df9d9107e332886c5678fa1cfd5872 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 29 Apr 2011 01:52:14 +0200 Subject: [PATCH] Closing diagnostic dialogue should cancel startup --- midori/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/midori/main.c b/midori/main.c index 41683a1b..e95fca28 100644 --- a/midori/main.c +++ b/midori/main.c @@ -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"); -- 2.39.5