taskdialog: fixed issue that would sometimes kill a thread before it was
finished leading to a SIGABRT from qt
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user