qt: Name RPCConsole executor QThread

This commit is contained in:
Hennadii Stepanov
2020-04-27 19:47:43 +03:00
parent 6757b3ac8f
commit 27dcc37d42

View File

@@ -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)