Browse Source

add invalid password check

283
tkhaew 10 years ago
parent
commit
e667f0164a
  1. 6
      gui/qt/main_window.py

6
gui/qt/main_window.py

@ -2310,6 +2310,12 @@ class ElectrumWindow(QMainWindow):
self.show_message(_("This is a watching-only wallet")) self.show_message(_("This is a watching-only wallet"))
return return
try:
mnemonic = self.wallet.get_mnemonic(password)
except Exception:
QMessageBox.warning(self, _('Error'), _('Incorrect Password'), _('OK'))
return
d = QDialog(self) d = QDialog(self)
d.setWindowTitle(_('Private keys')) d.setWindowTitle(_('Private keys'))
d.setMinimumSize(850, 300) d.setMinimumSize(850, 300)

Loading…
Cancel
Save