Browse Source

protect history from importprivkey

master
thomasv 12 years ago
parent
commit
b26187666b
  1. 3
      gui/gui_classic/qt_console.py

3
gui/gui_classic/qt_console.py

@ -142,6 +142,9 @@ class Console(QtGui.QPlainTextEdit):
self.history = history
def addToHistory(self, command):
if command.find("importprivkey") > -1:
return
if command and (not self.history or self.history[-1] != command):
self.history.append(command)
self.history_index = len(self.history)

Loading…
Cancel
Save