From: André Stösel Date: Tue, 21 Aug 2012 17:20:11 +0000 (+0200) Subject: use MidoriDownloadType to check if the download should be started X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43d3a6b07ee303f1917753c0146eb9abae01f5f9;p=midori use MidoriDownloadType to check if the download should be started --- diff --git a/extensions/external-download-manager.vala b/extensions/external-download-manager.vala index 89a1d19a..18e72693 100644 --- a/extensions/external-download-manager.vala +++ b/extensions/external-download-manager.vala @@ -35,7 +35,9 @@ namespace EDM { private GLib.PtrArray download_managers = new GLib.PtrArray (); public bool download_requested (Midori.View view, WebKit.Download download) { - if (download.get_data ("midori-download-type") == null) { + Midori.DownloadType download_type = download.get_data ("midori-download-type"); + + if (download_type == Midori.DownloadType.SAVE) { var dlReq = new DownloadRequest (); dlReq.uri = download.get_uri ();