diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-04-27 19:47:43 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-08-13 16:36:53 +0300 |
commit | 27dcc37d429626c75c540331340c62723529f37e (patch) | |
tree | b81e9689fe07985d166b0216eaa7757d063f5be1 /src | |
parent | 6757b3ac8f670cbc188fc7531394e713975c9351 (diff) | |
download | bitcoin-27dcc37d429626c75c540331340c62723529f37e.tar.xz |
qt: Name RPCConsole executor QThread
Diffstat (limited to 'src')
-rw-r--r-- | src/qt/rpcconsole.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index a14fae6460..4c5601242e 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -20,6 +20,7 @@ #include <rpc/client.h> #include <util/strencodings.h> #include <util/system.h> +#include <util/threadnames.h> #include <univalue.h> @@ -978,6 +979,9 @@ void RPCConsole::startExecutor() // Default implementation of QThread::run() simply spins up an event loop in the thread, // which is what we want. thread.start(); + QTimer::singleShot(0, executor, []() { + util::ThreadRename("qt-rpcconsole"); + }); } void RPCConsole::on_tabWidget_currentChanged(int index) |