do not add command to console history if it starts with a space
This commit is contained in:
parent
63c7a27d7e
commit
f0ec5a73ee
|
@ -144,7 +144,7 @@ class Console(QtGui.QPlainTextEdit):
|
||||||
self.history = history
|
self.history = history
|
||||||
|
|
||||||
def addToHistory(self, command):
|
def addToHistory(self, command):
|
||||||
if command.find("importprivkey") > -1:
|
if command[0:1] == ' ':
|
||||||
return
|
return
|
||||||
|
|
||||||
if command and (not self.history or self.history[-1] != command):
|
if command and (not self.history or self.history[-1] != command):
|
||||||
|
|
Loading…
Reference in New Issue