do not add command to console history if it starts with a space

This commit is contained in:
ThomasV 2014-12-14 16:53:40 +01:00
parent 63c7a27d7e
commit f0ec5a73ee
1 changed files with 1 additions and 1 deletions

View File

@ -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):