diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-06-09 12:58:51 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-06-09 12:58:56 +0200 |
commit | 6741837233eec841f84131548befcfea8ebf6f14 (patch) | |
tree | bda72b26be77c0c6b85e1a7fe2c257cc3d02d157 | |
parent | 62fdf381fa707206140f80e010e15de23ca3c8fd (diff) | |
parent | dff0e3b9152e66ae569c4f45608677eee11e5351 (diff) |
Merge pull request #4300
dff0e3b [Qt] Improve rpc console history behavior (Cozz Lovan)
-rw-r--r-- | src/qt/rpcconsole.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 0d3e11f4ac..199050cc57 100644 --- a/src/qt/rpcconsole.cpp +++ b/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 |