diff options
| author | mmbyday <mmbyday@protonmail.com> | 2019-04-05 15:07:03 -0700 |
|---|---|---|
| committer | mmbyday <mmbyday@protonmail.com> | 2019-04-11 01:28:19 -0700 |
| commit | 7b0bdb17505146c1680c075bce97f2fa1b6f360f (patch) | |
| tree | 4e28ab9629595791a087301dda35eb326c33e537 /wizard | |
| parent | d2c47606ca8446e58ef122117f8f84b578691bab (diff) | |
| download | monzero-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.qml | 4 | ||||
| -rw-r--r-- | 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 { |
