[Qt] Improve rpc console history behavior
Merge pull request #4300

dff0e3b [Qt] Improve rpc console history behavior (Cozz Lovan)