Abort download override question on error/cancel.
If a download error occured or the user cancelled the download during the file override question, an exception occured as the download was no longer valid when the question was answered. See #416.
This commit is contained in:
parent
18b58b2001
commit
cbde36948a
@ -276,6 +276,8 @@ class DownloadItem(QObject):
|
||||
q.answered_yes.connect(self._create_fileobj)
|
||||
q.answered_no.connect(functools.partial(self.cancel, False))
|
||||
q.cancelled.connect(functools.partial(self.cancel, False))
|
||||
self.cancelled.connect(q.abort)
|
||||
self.error.connect(q.abort)
|
||||
message_bridge = objreg.get('message-bridge', scope='window',
|
||||
window=self._win_id)
|
||||
message_bridge.ask(q, blocking=False)
|
||||
|
Loading…
Reference in New Issue
Block a user