aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormmbyday <mmbyday@protonmail.com>2019-04-21 13:09:12 -0700
committermmbyday <mmbyday@protonmail.com>2019-04-21 13:09:12 -0700
commit45efb415cdc74b67ea2dbae93be2e626eb4347db (patch)
treeeb772c41553e82e732c2c9f53e87339b1eba538c
parent10926644bfe049b3c7b1dcd9b274a3a79cfa1e94 (diff)
downloadmonzero-gui-45efb415cdc74b67ea2dbae93be2e626eb4347db.tar.gz
monzero-gui-45efb415cdc74b67ea2dbae93be2e626eb4347db.tar.xz
monzero-gui-45efb415cdc74b67ea2dbae93be2e626eb4347db.zip
wizard: allow viewonly wallet restores
-rw-r--r--wizard/WizardRestoreWallet1.qml4
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])
}