From 45efb415cdc74b67ea2dbae93be2e626eb4347db Mon Sep 17 00:00:00 2001 From: mmbyday Date: Sun, 21 Apr 2019 13:09:12 -0700 Subject: [PATCH] wizard: allow viewonly wallet restores --- wizard/WizardRestoreWallet1.qml | 4 ++++ 1 file changed, 4 insertions(+) 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]) }