tminor - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit ab46f1110f4ed40e2fc4820010354884d211986b DIR parent d67318399b50febc41818d46c042bcbd589f6dd1 HTML Author: thomasv <thomasv@gitorious> Date: Thu, 12 Sep 2013 19:54:26 +0200 minor Diffstat: M gui/gui_classic/password_dialog.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) --- DIR diff --git a/gui/gui_classic/password_dialog.py b/gui/gui_classic/password_dialog.py t@@ -82,7 +82,10 @@ def run_password_dialog(self, wallet, parent): QMessageBox.warning(parent, _('Error'), _('Failed to update password'), _('OK')) return - return new_password + if new_password: + QMessageBox.information(parent, _('Success'), _('Password was updated successfully'), _('OK')) + else: + QMessageBox.information(parent, _('Success'), _('This wallet is not encrypted'), _('OK')) t@@ -101,11 +104,7 @@ class PasswordDialog(QDialog): def run(self): - new_password = run_password_dialog(self, self.wallet, self.parent) - if new_password: - QMessageBox.information(self.parent, _('Success'), _('Password was updated successfully'), _('OK')) - else: - QMessageBox.information(self.parent, _('Success'), _('This wallet is not encrypted'), _('OK')) + run_password_dialog(self, self.wallet, self.parent)