mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-03-16 00:22:01 +00:00
FutureScheduler: drop moveToThread, setParent might silently fail
This commit is contained in:
parent
c6c094bbd5
commit
13ea4035b5
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue