From b26187666b74fe1f89e59fcb6cf01c33e887be42 Mon Sep 17 00:00:00 2001 From: thomasv Date: Sun, 15 Sep 2013 17:57:51 +0200 Subject: [PATCH] protect history from importprivkey --- gui/gui_classic/qt_console.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/gui_classic/qt_console.py b/gui/gui_classic/qt_console.py index 49d4148ad..9ff94d226 100644 --- 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)