From 4c36987845663edeacc13d8a8567b8d5f00f45c2 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Tue, 22 Dec 2015 23:09:09 +0900 Subject: [PATCH] Change password QT dialog window modal --- gui/qt/password_dialog.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gui/qt/password_dialog.py b/gui/qt/password_dialog.py index e287607f7..104cc94d1 100644 --- a/gui/qt/password_dialog.py +++ b/gui/qt/password_dialog.py @@ -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')