External download manager should skip image viewer

This commit is contained in:
Christian Dywan 2012-07-08 23:04:27 +02:00
parent c4791e4a9a
commit 57397ee229

View file

@ -37,6 +37,7 @@ 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-in-viewer") == null
&& download.get_data<void*> ("cancel-download") == null) {
var dlReq = new DownloadRequest ();
dlReq.uri = download.get_uri ();