Skip to content

Commit 27dcc37

Browse files
committed
qt: Name RPCConsole executor QThread
1 parent 6757b3a commit 27dcc37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/qt/rpcconsole.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <rpc/client.h>
2121
#include <util/strencodings.h>
2222
#include <util/system.h>
23+
#include <util/threadnames.h>
2324

2425
#include <univalue.h>
2526

@@ -978,6 +979,9 @@ void RPCConsole::startExecutor()
978979
// Default implementation of QThread::run() simply spins up an event loop in the thread,
979980
// which is what we want.
980981
thread.start();
982+
QTimer::singleShot(0, executor, []() {
983+
util::ThreadRename("qt-rpcconsole");
984+
});
981985
}
982986

983987
void RPCConsole::on_tabWidget_currentChanged(int index)

0 commit comments

Comments
 (0)