commit 892aabc7aea89e188bde8be6d3c6c4af4247592e
parent 30b67779cb2f6b47135fff295380b6d8515295e5
Author: thomasv <thomasv@gitorious>
Date: Mon, 13 Feb 2012 14:56:31 +0100
fix
Diffstat:
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/client/gui_qt.py b/client/gui_qt.py
@@ -425,8 +425,9 @@ class ElectrumWindow(QMainWindow):
msg = 'Your wallet is encrypted. Use this dialog to change the password.\n To disable wallet encryption, enter an empty new password.' if self.wallet.use_encryption else 'Your wallet keys are not encrypted'
grid.addWidget(QLabel(msg), 0, 0, 1, 2)
- grid.addWidget(QLabel('Password'), 1, 0)
- grid.addWidget(pw, 1, 1)
+ if self.wallet.use_encryption:
+ grid.addWidget(QLabel('Password'), 1, 0)
+ grid.addWidget(pw, 1, 1)
grid.addWidget(QLabel('New Password'), 2, 0)
grid.addWidget(new_pw, 2, 1)
@@ -446,8 +447,7 @@ class ElectrumWindow(QMainWindow):
if not d.exec_(): return
- password = str(pw.text())
- print password
+ password = str(pw.text()) if self.wallet.use_encryption else None
new_password = str(new_pw.text())
new_password2 = str(conf_pw.text())
diff --git a/client/wallet.py b/client/wallet.py
@@ -767,5 +767,5 @@ class Wallet:
a = self.imported_keys[k]
b = self.pw_decode(a, password)
c = self.pw_encode(b, new_password)
- self.wallet.imported_keys[k] = c
- self.wallet.save()
+ self.imported_keys[k] = c
+ self.save()