tChange password QT dialog window modal - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 4c36987845663edeacc13d8a8567b8d5f00f45c2 DIR parent 7437746cd256ae651c5de332a05fb9dd73ed66f0 HTML Author: Neil Booth <kyuupichan@gmail.com> Date: Tue, 22 Dec 2015 23:09:09 +0900 Change password QT dialog window modal Diffstat: M gui/qt/password_dialog.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- DIR diff --git a/gui/qt/password_dialog.py b/gui/qt/password_dialog.py t@@ -136,14 +136,12 @@ def update_password_strength(pw_strength_label,password): -class PasswordDialog(QDialog): +class PasswordDialog(WindowModalDialog): def __init__(self, wallet, parent): - QDialog.__init__(self, parent) - self.setModal(1) + WindowModalDialog.__init__(self, parent,_("Set Password")) self.wallet = wallet self.parent = parent - self.setWindowTitle(_("Set Password")) msg = (_('Your wallet is encrypted. Use this dialog to change your password.') + ' '\ +_('To disable wallet encryption, enter an empty new password.')) \ if wallet.use_encryption else _('Your wallet keys are not encrypted')