Check "cancel-download" as well as "open-download"

Fixes: https://bugs.launchpad.net/midori/+bug/986839
This commit is contained in:
André Stösel 2012-04-22 14:21:11 +02:00 committed by Christian Dywan
parent bc967c5563
commit 66abde2db9

View file

@ -36,7 +36,8 @@ namespace EDM {
public bool download_requested (Midori.View view, WebKit.Download download) { public bool download_requested (Midori.View view, WebKit.Download download) {
if (download.get_data<void*> ("save-as-download") == null 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 (); var dlReq = new DownloadRequest ();
dlReq.uri = download.get_uri (); dlReq.uri = download.get_uri ();