From 7b0bdb17505146c1680c075bce97f2fa1b6f360f Mon Sep 17 00:00:00 2001 From: mmbyday Date: Fri, 5 Apr 2019 15:07:03 -0700 Subject: [PATCH] wizard: fix clearing of restore wallet fields --- wizard/WizardRestoreWallet1.qml | 4 ++-- wizard/WizardWalletInput.qml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wizard/WizardRestoreWallet1.qml b/wizard/WizardRestoreWallet1.qml index 95e125fe..20e32db1 100644 --- a/wizard/WizardRestoreWallet1.qml +++ b/wizard/WizardRestoreWallet1.qml @@ -37,7 +37,7 @@ Rectangle { id: wizardRestoreWallet1 color: "transparent" - property string viewName: "wizardCreateWallet1" + property string viewName: "wizardRestoreWallet1" function verify() { if (restoreHeight.text.indexOf('-') === 4 && restoreHeight.text.length !== 10) { @@ -305,7 +305,7 @@ Rectangle { function onPageCompleted(previousView){ if(previousView.viewName == "wizardHome"){ // cleanup - walletInput.reset(); + wizardWalletInput.reset(); seedInput.text = ""; addressLine.text = ""; spendKeyLine.text = ""; diff --git a/wizard/WizardWalletInput.qml b/wizard/WizardWalletInput.qml index e8946647..895dec00 100644 --- a/wizard/WizardWalletInput.qml +++ b/wizard/WizardWalletInput.qml @@ -55,6 +55,8 @@ GridLayout { function reset() { walletName.error = !walletName.verify(); walletLocation.error = walletLocation.text === ""; + walletLocation.text = moneroAccountsDir + "/"; + walletName.text = defaultAccountName; } MoneroComponents.LineEdit {