From 7a95af7069550779f4f5f13aad14ace93e83d74e Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sun, 23 Feb 2020 11:44:30 +1100 Subject: [PATCH] taskdialog: fixed issue that would sometimes kill a thread before it was finished leading to a SIGABRT from qt --- app/dialog/task/task.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dialog/task/task.cpp b/app/dialog/task/task.cpp index 15ba2eb2c..792648e48 100644 --- a/app/dialog/task/task.cpp +++ b/app/dialog/task/task.cpp @@ -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()