forked from Public/monero-gui
FutureScheduler: drop moveToThread, setParent might silently fail
This commit is contained in:
@@ -32,12 +32,6 @@ private:
|
|||||||
QFutureWatcher<T> *newWatcher()
|
QFutureWatcher<T> *newWatcher()
|
||||||
{
|
{
|
||||||
QFutureWatcher<T> *watcher = new QFutureWatcher<T>();
|
QFutureWatcher<T> *watcher = new QFutureWatcher<T>();
|
||||||
QThread *schedulerThread = this->thread();
|
|
||||||
if (watcher->thread() != schedulerThread)
|
|
||||||
{
|
|
||||||
watcher->moveToThread(schedulerThread);
|
|
||||||
}
|
|
||||||
watcher->setParent(this);
|
|
||||||
|
|
||||||
return watcher;
|
return watcher;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user