diff options
| author | rating89us <45968869+rating89us@users.noreply.github.com> | 2020-10-17 18:50:28 +0200 |
|---|---|---|
| committer | rating89us <rating89us@rating89us.com> | 2020-10-18 17:06:34 +0200 |
| commit | cd3a0f85a68e105929484a3c6f3d35d518fa83c6 (patch) | |
| tree | d1f42b205525b812437f1322bb495d8230ab86eb /wizard | |
| parent | cb1f3ad0ce228b9c272df76838754e303b074a32 (diff) | |
| download | monzero-gui-cd3a0f85a68e105929484a3c6f3d35d518fa83c6.tar.gz monzero-gui-cd3a0f85a68e105929484a3c6f3d35d518fa83c6.tar.xz monzero-gui-cd3a0f85a68e105929484a3c6f3d35d518fa83c6.zip | |
Restore: display red border if invalid seed
Diffstat (limited to 'wizard')
| -rw-r--r-- | wizard/WizardRestoreWallet1.qml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/wizard/WizardRestoreWallet1.qml b/wizard/WizardRestoreWallet1.qml index 838e2d00..ca85f45d 100644 --- a/wizard/WizardRestoreWallet1.qml +++ b/wizard/WizardRestoreWallet1.qml @@ -51,10 +51,8 @@ Rectangle { valid = wizardRestoreWallet1.verifyFromKeys(); return valid; } else if(wizardController.walletRestoreMode === "seed") { - valid = wizardWalletInput.verify(); - if(!valid) return false; - valid = Wizard.checkSeed(seedInput.text); - return valid; + seedInput.error = seedInput.text && !Wizard.checkSeed(seedInput.text); + return wizardWalletInput.verify() && seedInput.text && Wizard.checkSeed(seedInput.text); } return false; |
