aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-04-16 16:46:37 -0400
committerluigi1111 <luigi1111w@gmail.com>2019-04-16 16:46:37 -0400
commitc30fd82636772dac5711fcbc423988a089907070 (patch)
tree4e28ab9629595791a087301dda35eb326c33e537
parentd2c47606ca8446e58ef122117f8f84b578691bab (diff)
parent7b0bdb17505146c1680c075bce97f2fa1b6f360f (diff)
downloadmonzero-gui-c30fd82636772dac5711fcbc423988a089907070.tar.gz
monzero-gui-c30fd82636772dac5711fcbc423988a089907070.tar.xz
monzero-gui-c30fd82636772dac5711fcbc423988a089907070.zip
Merge pull request #2056
7b0bdb1 wizard: fix clearing of restore wallet fields (mmbyday)
-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 {