diff options
| -rw-r--r-- | wizard/WizardRestoreWallet1.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wizard/WizardRestoreWallet1.qml b/wizard/WizardRestoreWallet1.qml index 20e32db1..7919cb32 100644 --- a/wizard/WizardRestoreWallet1.qml +++ b/wizard/WizardRestoreWallet1.qml @@ -75,6 +75,10 @@ Rectangle { viewKeyLine.error = !result[1] && viewKeyLineLength != 0 spendKeyLine.error = !result[2] && spendKeyLineLength != 0 + // allow valid viewOnly + if (spendKeyLine.text.length === 0) + return (result[0] && result[1]) + return (result[0] && result[1] && result[2]) } |
