1
0

check seed in gui. fixes #622

This commit is contained in:
ThomasV
2014-04-05 10:34:51 +02:00
parent 38a59c0b37
commit c24482c21a
4 changed files with 63 additions and 29 deletions

View File

@@ -134,6 +134,10 @@ class InstallWizard(QDialog):
QMessageBox.warning(None, _('Error'), _('No seed'), _('OK'))
return
if not Wallet.is_seed(seed):
QMessageBox.warning(None, _('Error'), _('Invalid seed'), _('OK'))
return
return seed
@@ -272,7 +276,7 @@ class InstallWizard(QDialog):
elif action == 'restore':
seed = self.seed_dialog()
if not seed:
if not Wallet.is_seed(seed):
return
wallet = Wallet.from_seed(seed, self.storage)
ok, old_password, password = self.password_dialog(wallet)