mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
qt: Name RPCConsole executor QThread
This commit is contained in:
parent
6757b3ac8f
commit
27dcc37d42
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue