git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a320f92
)
protect history from importprivkey
author
thomasv
<thomasv@gitorious>
Sun, 15 Sep 2013 15:57:51 +0000 (17:57 +0200)
committer
thomasv
<thomasv@gitorious>
Sun, 15 Sep 2013 15:57:51 +0000 (17:57 +0200)
gui/gui_classic/qt_console.py
patch
|
blob
|
history
diff --git
a/gui/gui_classic/qt_console.py
b/gui/gui_classic/qt_console.py
index
49d4148
..
9ff94d2
100644
(file)
--- 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)