From 13ea4035b58436500b6249512ff0cbdc87e470c1 Mon Sep 17 00:00:00 2001 From: xiphon Date: Mon, 23 Dec 2019 11:35:47 +0000 Subject: [PATCH] FutureScheduler: drop moveToThread, setParent might silently fail --- src/qt/FutureScheduler.h | 6 ------ 1 file changed, 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 *newWatcher() { QFutureWatcher *watcher = new QFutureWatcher(); - QThread *schedulerThread = this->thread(); - if (watcher->thread() != schedulerThread) - { - watcher->moveToThread(schedulerThread); - } - watcher->setParent(this); return watcher; }