From afd6b652c996ab958c1b876b69ac441df4bcc9a8 Mon Sep 17 00:00:00 2001 From: Martin Natano Date: Tue, 10 Apr 2012 22:33:26 +0200 Subject: [PATCH] Handle delete event in mime_type_decision_cb --- midori/midori-view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index fb10fb59..1da3089d 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -2953,7 +2953,7 @@ webkit_web_view_mime_type_decision_cb (GtkWidget* web_view, g_object_set_data (G_OBJECT (view), "open-download", (gpointer)0); switch (response) { - case 4: + case 4: g_object_set_data (G_OBJECT (view), "save-as-download", (gpointer)1); webkit_web_policy_decision_download (decision); break; @@ -2963,6 +2963,7 @@ webkit_web_view_mime_type_decision_cb (GtkWidget* web_view, webkit_web_policy_decision_download (decision); break; case 2: + case GTK_RESPONSE_DELETE_EVENT: webkit_web_policy_decision_ignore (decision); break; default: -- 2.39.5