def run_password_dialog(self, wallet, parent):
- if wallet and not wallet.seed:
- QMessageBox.information(parent, _('Error'), _('No seed'), _('OK'))
+ if wallet.is_watching_only():
+ QMessageBox.information(parent, _('Error'), _('This is a watching-only wallet'), _('OK'))
return False, None, None
if not self.exec_():
return
try:
- self.wallet.get_seed(password)
+ self.wallet.check_password(password)
except Exception:
QMessageBox.warning(self.parent, _('Error'), _('Incorrect Password'), _('OK'))
return False, None, None