Change password QT dialog window modal

This commit is contained in:
Neil Booth 2015-12-22 23:09:09 +09:00
parent 7437746cd2
commit 4c36987845
1 changed files with 2 additions and 4 deletions

View File

@ -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')