diff --git a/wizard/WizardRestoreWallet4.qml b/wizard/WizardRestoreWallet4.qml index 9f87e77b..e29c357c 100644 --- a/wizard/WizardRestoreWallet4.qml +++ b/wizard/WizardRestoreWallet4.qml @@ -82,11 +82,13 @@ Rectangle { btnNext.enabled = false; wizardController.wizardStateView.wizardRestoreWallet2View.pwField = ""; wizardController.wizardStateView.wizardRestoreWallet2View.pwConfirmField = ""; - wizardController.recoveryWallet(); - wizardController.writeWallet(function() { - wizardController.useMoneroClicked(); - btnNext.enabled = true; - }); + var recoveryResult = wizardController.recoveryWallet(); + if (recoveryResult) { + wizardController.writeWallet(function () { + wizardController.useMoneroClicked(); + }); + } + btnNext.enabled = true; } } }