File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -949,6 +949,10 @@ void RPCConsole::on_lineEdit_returnPressed()
949
949
return ;
950
950
}
951
951
952
+ if (m_is_executing) {
953
+ return ;
954
+ }
955
+
952
956
ui->lineEdit ->clear ();
953
957
954
958
#ifdef ENABLE_WALLET
@@ -967,6 +971,7 @@ void RPCConsole::on_lineEdit_returnPressed()
967
971
message (CMD_REQUEST, QString::fromStdString (strFilteredCmd));
968
972
// : A console message indicating an entered command is currently being executed.
969
973
message (CMD_REPLY, tr (" Executing…" ));
974
+ m_is_executing = true ;
970
975
Q_EMIT cmdRequest (cmd, m_last_wallet_model);
971
976
972
977
cmd = QString::fromStdString (strFilteredCmd);
@@ -1018,6 +1023,7 @@ void RPCConsole::startExecutor()
1018
1023
ui->messagesWidget ->undo ();
1019
1024
message (category, command);
1020
1025
scrollToEnd ();
1026
+ m_is_executing = false ;
1021
1027
});
1022
1028
1023
1029
// Requests from this object must go to executor
Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ public Q_SLOTS:
166
166
QCompleter *autoCompleter = nullptr ;
167
167
QThread thread;
168
168
WalletModel* m_last_wallet_model{nullptr };
169
+ bool m_is_executing{false };
169
170
170
171
/* * Update UI with latest network info from model. */
171
172
void updateNetworkState ();
You can’t perform that action at this time.
0 commit comments