Added id to InsightWorker objects

This commit is contained in:
Nav
2022-09-08 15:29:54 +01:00
parent 7a8efcd7fc
commit 77cd13bf46
3 changed files with 12 additions and 5 deletions

View File

@@ -181,7 +181,7 @@ namespace Bloom
// Prepare worker thread
this->workerThread = new QThread();
this->workerThread->setObjectName("IW");
this->workerThread->setObjectName("IW" + QString::number(this->insightWorker->id));
this->insightWorker->moveToThread(this->workerThread);
QObject::connect(this->workerThread, &QThread::started, this->insightWorker, &InsightWorker::startup);
QObject::connect(this->workerThread, &QThread::finished, this->insightWorker, &QObject::deleteLater);