diff options
| author | Hennadii Stepanov <[email protected]> | 2020-04-27 19:47:43 +0300 |
|---|---|---|
| committer | Hennadii Stepanov <[email protected]> | 2020-08-13 16:36:53 +0300 |
| commit | 27dcc37d429626c75c540331340c62723529f37e (patch) | |
| tree | b81e9689fe07985d166b0216eaa7757d063f5be1 | |
| parent | Merge #19655: rpc: Catch listsinceblock target_confirmations exceeding block ... (diff) | |
| download | discoin-27dcc37d429626c75c540331340c62723529f37e.tar.xz discoin-27dcc37d429626c75c540331340c62723529f37e.zip | |
qt: Name RPCConsole executor QThread
| -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 a14fae646..4c5601242 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) |