Browse Source

Merge pull request #4300

dff0e3b [Qt] Improve rpc console history behavior (Cozz Lovan)
0.10
Wladimir J. van der Laan 10 years ago
parent
commit
6741837233
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 4
      src/qt/rpcconsole.cpp

4
src/qt/rpcconsole.cpp

@ -415,8 +415,8 @@ void RPCConsole::on_lineEdit_returnPressed() @@ -415,8 +415,8 @@ void RPCConsole::on_lineEdit_returnPressed()
{
message(CMD_REQUEST, cmd);
emit cmdRequest(cmd);
// Truncate history from current position
history.erase(history.begin() + historyPtr, history.end());
// Remove command, if already in history
history.removeOne(cmd);
// Append command to history
history.append(cmd);
// Enforce maximum history size

Loading…
Cancel
Save