Check "cancel-download" as well as "open-download"
Fixes: https://bugs.launchpad.net/midori/+bug/986839
This commit is contained in:
parent
bc967c5563
commit
66abde2db9
1 changed files with 2 additions and 1 deletions
|
@ -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 ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue