qt: Name RPCConsole executor QThread
This commit is contained in:
1 file changed
+4
@@ -20,6 +20,7 @@
|
|||||||
#include <rpc/client.h>
|
#include <rpc/client.h>
|
||||||
#include <util/strencodings.h>
|
#include <util/strencodings.h>
|
||||||
#include <util/system.h>
|
#include <util/system.h>
|
||||||
|
#include <util/threadnames.h>
|
||||||
|
|
||||||
#include <univalue.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,
|
// Default implementation of QThread::run() simply spins up an event loop in the thread,
|
||||||
// which is what we want.
|
// which is what we want.
|
||||||
thread.start();
|
thread.start();
|
||||||
|
QTimer::singleShot(0, executor, []() {
|
||||||
|
util::ThreadRename("qt-rpcconsole");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void RPCConsole::on_tabWidget_currentChanged(int index)
|
void RPCConsole::on_tabWidget_currentChanged(int index)
|
||||||
|
|||||||
Reference in new issue
Block a user