Delete question if download as cancelled
This commit is contained in:
parent
61e8940ccb
commit
2388874e82
@ -19,7 +19,6 @@
|
||||
|
||||
import os
|
||||
import sys
|
||||
import types
|
||||
import faulthandler
|
||||
import configparser
|
||||
from bdb import BdbQuit
|
||||
|
@ -372,6 +372,7 @@ class DownloadManager(QObject):
|
||||
q.cancelled.connect(q.deleteLater)
|
||||
self.questions.append(q)
|
||||
download.cancelled.connect(q.abort)
|
||||
download.cancelled.connect(q.deleteLater)
|
||||
message.instance().question.emit(q, False)
|
||||
|
||||
@pyqtSlot(DownloadItem)
|
||||
|
@ -18,6 +18,7 @@
|
||||
"""Utilities used for debugging."""
|
||||
|
||||
import sys
|
||||
import types
|
||||
from functools import wraps
|
||||
|
||||
from PyQt5.QtCore import (pyqtRemoveInputHook, QEvent, QCoreApplication,
|
||||
|
Loading…
Reference in New Issue
Block a user