]> spindle.queued.net Git - midori/commitdiff
Check "cancel-download" as well as "open-download"
authorAndré Stösel <andre@stoesel.de>
Sun, 22 Apr 2012 12:21:11 +0000 (14:21 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 12 May 2012 01:51:25 +0000 (03:51 +0200)
Fixes: https://bugs.launchpad.net/midori/+bug/986839
extensions/external-download-manager.vala

index f7266f7af9d1d82ca668da805f1f2f311bd492f1..b4e783ab3f9edee5e738d53693d372e3e5cae32c 100644 (file)
@@ -36,7 +36,8 @@ namespace EDM {
 
         public bool download_requested (Midori.View view, WebKit.Download download) {
             if (download.get_data<void*> ("save-as-download") == null
-             && download.get_data<void*> ("open-download") == null) {
+             && download.get_data<void*> ("open-download") == null
+             && download.get_data<void*> ("cancel-download") == null) {
                 var dlReq = new DownloadRequest ();
                 dlReq.uri = download.get_uri ();