Automatically start background updater

Ref T28
This commit is contained in:
Klaus Basan
2017-07-03 14:08:31 +02:00
committed by Mathew Sutcliffe
parent c790e344ac
commit e2c43a688b
4 changed files with 11 additions and 4 deletions

View File

@@ -89,6 +89,7 @@ namespace BlackCore
{
if (!CThreadUtils::isCurrentThreadObjectThread(this))
{
// shift in correct thread
QTimer::singleShot(0, this, [this, updateTimeSecs] { this->startUpdating(updateTimeSecs); });
return;
}