Merge pull request #2679

13ea403 FutureScheduler: drop moveToThread, setParent might silently fail (xiphon)
pull/2/head
luigi1111 5 years ago
commit 82affff63f
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

@ -32,12 +32,6 @@ private:
QFutureWatcher<T> *newWatcher()
{
QFutureWatcher<T> *watcher = new QFutureWatcher<T>();
QThread *schedulerThread = this->thread();
if (watcher->thread() != schedulerThread)
{
watcher->moveToThread(schedulerThread);
}
watcher->setParent(this);
return watcher;
}