From 25a665e601ffd91f240717020aa2808eba6b9575 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 30 Nov 2014 15:34:15 +0100 Subject: [PATCH] Abort download question on errors. Fixes #266. --- qutebrowser/browser/downloads.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qutebrowser/browser/downloads.py b/qutebrowser/browser/downloads.py index 25dc3109c..4eb40b9f5 100644 --- a/qutebrowser/browser/downloads.py +++ b/qutebrowser/browser/downloads.py @@ -599,6 +599,7 @@ class DownloadManager(QAbstractListModel): q.destroyed.connect(functools.partial(self.questions.remove, q)) self.questions.append(q) download.cancelled.connect(q.abort) + download.error.connect(q.abort) message_bridge = objreg.get('message-bridge', scope='window', window=self._win_id) message_bridge.ask(q, blocking=False)