mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-24 22:45:41 +01:00
qt: Name RPCConsole executor QThread
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user