Skip to content
Permalink
Browse files

[Qt] Improve rpc console history behavior

  • Loading branch information...
cozz committed Jun 6, 2014
1 parent db41541 commit dff0e3b9152e66ae569c4f45608677eee11e5351
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/qt/rpcconsole.cpp
@@ -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

0 comments on commit dff0e3b

Please sign in to comment.
You can’t perform that action at this time.