mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 18:20:58 +02:00
[Qt] Improve rpc console history behavior
This commit is contained in:
@ -415,8 +415,8 @@ void RPCConsole::on_lineEdit_returnPressed()
|
|||||||
{
|
{
|
||||||
message(CMD_REQUEST, cmd);
|
message(CMD_REQUEST, cmd);
|
||||||
emit cmdRequest(cmd);
|
emit cmdRequest(cmd);
|
||||||
// Truncate history from current position
|
// Remove command, if already in history
|
||||||
history.erase(history.begin() + historyPtr, history.end());
|
history.removeOne(cmd);
|
||||||
// Append command to history
|
// Append command to history
|
||||||
history.append(cmd);
|
history.append(cmd);
|
||||||
// Enforce maximum history size
|
// Enforce maximum history size
|
||||||
|
Reference in New Issue
Block a user