aboutsummaryrefslogtreecommitdiff
path: root/wizard/WizardRecoveryWallet.qml
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2016-12-08 15:37:16 +0100
committerJaquee <jaquee.monero@gmail.com>2016-12-08 15:37:16 +0100
commit6ca4e05167ce64f746e92254baecc80c76ef7782 (patch)
treec6f529c217b6d903e3689dc113beac2a29b4b3dd /wizard/WizardRecoveryWallet.qml
parent26abdee5c47017a80117b1bed5ee36586a240c62 (diff)
downloadmonzero-gui-6ca4e05167ce64f746e92254baecc80c76ef7782.tar.gz
monzero-gui-6ca4e05167ce64f746e92254baecc80c76ef7782.tar.xz
monzero-gui-6ca4e05167ce64f746e92254baecc80c76ef7782.zip
wizard: Reset password and account name fields on wizard restart
Diffstat (limited to 'wizard/WizardRecoveryWallet.qml')
-rw-r--r--wizard/WizardRecoveryWallet.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/wizard/WizardRecoveryWallet.qml b/wizard/WizardRecoveryWallet.qml
index 236c59a1..0289eba9 100644
--- a/wizard/WizardRecoveryWallet.qml
+++ b/wizard/WizardRecoveryWallet.qml
@@ -41,6 +41,11 @@ Item {
onOpacityChanged: visible = opacity !== 0
+ function onWizardRestarted() {
+ // reset account name field
+ uiItem.accountNameText = defaultAccountName
+ }
+
function onPageOpened(settingsObject) {
checkNextButton();
// Empty seedText when restoring multiple times in one session
@@ -95,4 +100,8 @@ Item {
checkNextButton();
}
}
+
+ Component.onCompleted: {
+ parent.wizardRestarted.connect(onWizardRestarted)
+ }
}