From bb3de0eb63fe6770dbcd6fb059f653573c0cd91f Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 7 Feb 2016 16:45:29 +0900 Subject: [PATCH] change_password_dialog: remove redundant check This is guaranteed False by wallet.can_change_password() --- gui/qt/main_window.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 825e4cadb..7f74487d6 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -1875,10 +1875,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): def change_password_dialog(self): from password_dialog import PasswordDialog, PW_CHANGE - if self.wallet and self.wallet.is_watching_only(): - self.show_error(_('This is a watching-only wallet')) - return - msg = (_('Your wallet is encrypted. Use this dialog to change your ' 'password. To disable wallet encryption, enter an empty new ' 'password.') if self.wallet.use_encryption