Ref T314, thread CContinuousWorker::finish

- use application thread if there is no owner
- use QPointer for owner
- more detailled error message
This commit is contained in:
Klaus Basan
2018-08-30 01:17:14 +02:00
parent f6dee9e7ff
commit 5096df034b
5 changed files with 70 additions and 26 deletions

View File

@@ -118,6 +118,7 @@ namespace BlackCore
QCoreApplication::setApplicationName(m_applicationName);
QCoreApplication::setApplicationVersion(CBuildConfig::getVersionString());
this->setObjectName(m_applicationName);
this->thread()->setObjectName(m_applicationName); // normally no effect as thread already runs, but does not harm either
// init skipped when called from CGuiApplication
if (init)