diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-06-09 12:58:51 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-06-09 12:58:56 +0200 |
| commit | 6741837233eec841f84131548befcfea8ebf6f14 (patch) | |
| tree | bda72b26be77c0c6b85e1a7fe2c257cc3d02d157 | |
| parent | Merge pull request #3824 (diff) | |
| parent | [Qt] Improve rpc console history behavior (diff) | |
| download | discoin-6741837233eec841f84131548befcfea8ebf6f14.tar.xz discoin-6741837233eec841f84131548befcfea8ebf6f14.zip | |
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 0d3e11f4a..199050cc5 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 |