commit b26187666b74fe1f89e59fcb6cf01c33e887be42
parent a320f92023cbb2108fe3a03f40afb1f89c193484
Author: thomasv <thomasv@gitorious>
Date: Sun, 15 Sep 2013 17:57:51 +0200
protect history from importprivkey
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/gui/gui_classic/qt_console.py b/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)