mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-01 23:17:26 -04:00
FutureScheduler: drop moveToThread, setParent might silently fail
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user