Ticket #3878: 0001-Don-t-call-.start-after-.set_destination_uri-SL-3878.patch

File 0001-Don-t-call-.start-after-.set_destination_uri-SL-3878.patch, 1.1 KB (added by humitos, 8 years ago)
  • downloadmanager.py

    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): 
    8585        logging.debug('Download destination path: %s' % self._dest_path)
    8686
    8787        self._download.set_destination_uri('file://' + self._dest_path)
    88         self._download.start()
    8988
    9089    def __progress_change_cb(self, download, something):
    9190        progress = self._download.get_progress()