Merge pull request #4300

dff0e3b [Qt] Improve rpc console history behavior (Cozz Lovan)
This commit is contained in:
Wladimir J. van der Laan committed 2014-06-09 12:58:56 +02:00
commit 6741837233
1 file changed
+2 -2
+2 -2
View File
@@ -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