aboutsummaryrefslogtreecommitdiff
path: root/wizard
diff options
context:
space:
mode:
authormmbyday <mmbyday@protonmail.com>2019-04-05 15:07:03 -0700
committermmbyday <mmbyday@protonmail.com>2019-04-11 01:28:19 -0700
commit7b0bdb17505146c1680c075bce97f2fa1b6f360f (patch)
tree4e28ab9629595791a087301dda35eb326c33e537 /wizard
parentd2c47606ca8446e58ef122117f8f84b578691bab (diff)
downloadmonzero-gui-7b0bdb17505146c1680c075bce97f2fa1b6f360f.tar.gz
monzero-gui-7b0bdb17505146c1680c075bce97f2fa1b6f360f.tar.xz
monzero-gui-7b0bdb17505146c1680c075bce97f2fa1b6f360f.zip
wizard: fix clearing of restore wallet fields
Diffstat (limited to 'wizard')
-rw-r--r--wizard/WizardRestoreWallet1.qml4
-rw-r--r--wizard/WizardWalletInput.qml2
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 {