diff options
| author | Hennadii Stepanov <[email protected]> | 2020-04-27 21:06:24 +0300 |
|---|---|---|
| committer | Hennadii Stepanov <[email protected]> | 2020-08-13 16:37:05 +0300 |
| commit | ad5f614bf326d739424e8b403066f2d4275e4c1b (patch) | |
| tree | 75f6b0b48c72709def359846057fec798f914920 | |
| parent | qt: Name WalletController worker QThread (diff) | |
| download | discoin-ad5f614bf326d739424e8b403066f2d4275e4c1b.tar.xz discoin-ad5f614bf326d739424e8b403066f2d4275e4c1b.zip | |
qt: Name ClientModel timer QThread
| -rw-r--r-- | src/qt/clientmodel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp index 7822d4c5f..a2f46c339 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(); } |