aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2019-12-23 11:35:47 +0000
committerxiphon <xiphon@protonmail.com>2019-12-23 11:35:47 +0000
commit13ea4035b58436500b6249512ff0cbdc87e470c1 (patch)
treeccda76d0a310be57b2755ee2390fadfffc3c7866
parentc6c094bbd5c13c351ca2ef092612cc2def95a804 (diff)
downloadmonzero-gui-13ea4035b58436500b6249512ff0cbdc87e470c1.tar.gz
monzero-gui-13ea4035b58436500b6249512ff0cbdc87e470c1.tar.xz
monzero-gui-13ea4035b58436500b6249512ff0cbdc87e470c1.zip
FutureScheduler: drop moveToThread, setParent might silently fail
-rw-r--r--src/qt/FutureScheduler.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/qt/FutureScheduler.h b/src/qt/FutureScheduler.h
index c8eab23a..776fb08c 100644
--- a/src/qt/FutureScheduler.h
+++ b/src/qt/FutureScheduler.h
@@ -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;
}