@@ -1091,11 +1091,11 @@ void RPCConsole::browseHistory(int offset)
1091
1091
1092
1092
void RPCConsole::startExecutor ()
1093
1093
{
1094
- RPCExecutor *executor = new RPCExecutor (m_node);
1095
- executor ->moveToThread (&thread);
1094
+ m_executor = new RPCExecutor (m_node);
1095
+ m_executor ->moveToThread (&thread);
1096
1096
1097
1097
// Replies from executor object must go to this object
1098
- connect (executor , &RPCExecutor::reply, this , [this ](int category, const QString& command) {
1098
+ connect (m_executor , &RPCExecutor::reply, this , [this ](int category, const QString& command) {
1099
1099
// Remove "Executing…" message.
1100
1100
ui->messagesWidget ->undo ();
1101
1101
message (category, command);
@@ -1104,15 +1104,15 @@ void RPCConsole::startExecutor()
1104
1104
});
1105
1105
1106
1106
// Requests from this object must go to executor
1107
- connect (this , &RPCConsole::cmdRequest, executor , &RPCExecutor::request);
1107
+ connect (this , &RPCConsole::cmdRequest, m_executor , &RPCExecutor::request);
1108
1108
1109
1109
// Make sure executor object is deleted in its own thread
1110
- connect (&thread, &QThread::finished, executor , &RPCExecutor::deleteLater);
1110
+ connect (&thread, &QThread::finished, m_executor , &RPCExecutor::deleteLater);
1111
1111
1112
1112
// Default implementation of QThread::run() simply spins up an event loop in the thread,
1113
1113
// which is what we want.
1114
1114
thread.start ();
1115
- QTimer::singleShot (0 , executor , []() {
1115
+ QTimer::singleShot (0 , m_executor , []() {
1116
1116
util::ThreadRename (" qt-rpcconsole" );
1117
1117
});
1118
1118
}
0 commit comments