aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-04-27 21:06:24 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-08-13 16:37:05 +0300
commitad5f614bf326d739424e8b403066f2d4275e4c1b (patch)
tree75f6b0b48c72709def359846057fec798f914920 /src/qt
parent2c7f5d8c2e6dae099a73fe748f6194da3c961a48 (diff)
downloadbitcoin-ad5f614bf326d739424e8b403066f2d4275e4c1b.tar.xz
qt: Name ClientModel timer QThread
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/clientmodel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp
index 7822d4c5f3..a2f46c339b 100644
--- a/src/qt/clientmodel.cpp
+++ b/src/qt/clientmodel.cpp
@@ -15,6 +15,7 @@
#include <net.h>
#include <netbase.h>
#include <util/system.h>
+#include <util/threadnames.h>
#include <validation.h>
#include <stdint.h>
@@ -52,6 +53,9 @@ ClientModel::ClientModel(interfaces::Node& node, OptionsModel *_optionsModel, QO
// move timer to thread so that polling doesn't disturb main event loop
timer->moveToThread(m_thread);
m_thread->start();
+ QTimer::singleShot(0, timer, []() {
+ util::ThreadRename("qt-clientmodl");
+ });
subscribeToCoreSignals();
}