From f0ec5a73ee6d232981f6239203d7dff21eb43d70 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 14 Dec 2014 16:53:40 +0100 Subject: [PATCH] do not add command to console history if it starts with a space --- gui/qt/console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/qt/console.py b/gui/qt/console.py index f198550fb..2f4557b18 100644 --- a/gui/qt/console.py +++ b/gui/qt/console.py @@ -144,7 +144,7 @@ class Console(QtGui.QPlainTextEdit): self.history = history def addToHistory(self, command): - if command.find("importprivkey") > -1: + if command[0:1] == ' ': return if command and (not self.history or self.history[-1] != command):