diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 695d474853e..54ca526a0d3 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -892,7 +892,7 @@ void RPCConsole::on_lineEdit_returnPressed() { QString cmd = ui->lineEdit->text(); - if (cmd.isEmpty() || m_is_executing) { + if (cmd.isEmpty()) { return; } @@ -908,6 +908,16 @@ void RPCConsole::on_lineEdit_returnPressed() return; } + if (cmd.startsWith("stop")) { + std::string dummy; + RPCExecuteCommandLine(m_node, dummy, cmd.toStdString()); + return; + } + + if (m_is_executing) { + return; + } + ui->lineEdit->clear(); #ifdef ENABLE_WALLET