in addition to aborting the task, also disconnect from the message signal
This commit is contained in:
@@ -175,6 +175,10 @@ class MainApplication(QtWidgets.QApplication):
|
||||
if task := getattr(self, s, None):
|
||||
task.abort()
|
||||
aborted_tasks.append(task)
|
||||
try:
|
||||
task.message.disconnect()
|
||||
except TypeError:
|
||||
pass
|
||||
|
||||
for task in aborted_tasks:
|
||||
task.wait()
|
||||
|
||||
Reference in New Issue
Block a user