taskdialog: fixed issue that would sometimes kill a thread before it was

finished leading to a SIGABRT from qt
This commit is contained in:
itsmattkc
2020-02-23 11:44:30 +11:00
parent 0a74714f5d
commit 7a95af7069
+1 -1
View File
@@ -21,7 +21,7 @@ TaskDialog::TaskDialog(Task* task, const QString& title, QWidget *parent) :
connect(task_, &Task::Finished, this, &TaskDialog::deleteLater, Qt::QueuedConnection);
connect(task_, &Task::Finished, task_, &Task::deleteLater, Qt::QueuedConnection);
connect(task_, &Task::Finished, thread_, &QThread::quit, Qt::QueuedConnection);
connect(task_, &Task::Finished, thread_, &QThread::deleteLater, Qt::QueuedConnection);
connect(thread_, &QThread::finished, thread_, &QThread::deleteLater, Qt::QueuedConnection);
}
void TaskDialog::open()