FutureScheduler: drop moveToThread, setParent might silently fail

This commit is contained in:
xiphon 2019-12-23 11:35:47 +00:00
parent c6c094bbd5
commit 13ea4035b5

View file

@ -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;
}