From f22d6b787c5d417fe95e5e48a6ccf0874c1d0364 Mon Sep 17 00:00:00 2001
From: Manuel Kaufmann <humitos@gmail.com>
Date: Mon, 10 Sep 2012 18:07:39 -0300
Subject: [PATCH Browse] Don't call .start after .set_destination_uri SL #3878
Do not call WebKitDownload.start after .set_destination_uri because it
is no needed. The download will start automatically after
.set_destination_uri.
http://webkitgtk.org/reference/webkitgtk/stable/webkitgtk-webkitwebview.html#WebKitWebView-download-requested
Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
---
downloadmanager.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/downloadmanager.py b/downloadmanager.py
index 9950c16..ab9fec2 100644
a
|
b
|
class Download(object): |
85 | 85 | logging.debug('Download destination path: %s' % self._dest_path) |
86 | 86 | |
87 | 87 | self._download.set_destination_uri('file://' + self._dest_path) |
88 | | self._download.start() |
89 | 88 | |
90 | 89 | def __progress_change_cb(self, download, something): |
91 | 90 | progress = self._download.get_progress() |