]> spindle.queued.net Git - midori/commitdiff
Handle delete event in mime_type_decision_cb
authorMartin Natano <natano@natano.net>
Tue, 10 Apr 2012 20:33:26 +0000 (22:33 +0200)
committerChristian Dywan <christian@twotoasts.de>
Tue, 10 Apr 2012 20:33:26 +0000 (22:33 +0200)
midori/midori-view.c

index fb10fb59fea58211851105e2ab6d0c5c820e9688..1da3089de8b3ea0ca9726d81b26a5f47916f1635 100644 (file)
@@ -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: