Permalink
Browse files

[Qt] Improve rpc console history behavior

  • Loading branch information...
Tranz5 committed Jul 30, 2014
1 parent 57b3812 commit e0b91d142e8b7aec662d93600ca86bebcb24e5bc
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/qt/rpcconsole.cpp
View
@@ -363,8 +363,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 e0b91d1

Please sign in to comment.