diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-04-23 15:33:33 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-04-23 15:33:33 -0500 |
| commit | ba0f7fc9f62467d1b95ef40adf849c6e4484fccd (patch) | |
| tree | 0429f43622c1513d071b8edcf9a4d73e8c89f653 | |
| parent | b39f04117752b7635ff32037e6a571173e93a7ad (diff) | |
| parent | 45efb415cdc74b67ea2dbae93be2e626eb4347db (diff) | |
| download | monzero-gui-ba0f7fc9f62467d1b95ef40adf849c6e4484fccd.tar.gz monzero-gui-ba0f7fc9f62467d1b95ef40adf849c6e4484fccd.tar.xz monzero-gui-ba0f7fc9f62467d1b95ef40adf849c6e4484fccd.zip | |
Merge pull request #2105
45efb41 wizard: allow viewonly wallet restores (mmbyday)
| -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]) } |
