From 43d3a6b07ee303f1917753c0146eb9abae01f5f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20St=C3=B6sel?= Date: Tue, 21 Aug 2012 19:20:11 +0200 Subject: [PATCH] use MidoriDownloadType to check if the download should be started --- extensions/external-download-manager.vala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 (); -- 2.39.5