aboutsummaryrefslogtreecommitdiff
path: root/wizard/WizardCreateWallet.qml
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-12-09 00:10:05 +0200
committerRiccardo Spagni <ric@spagni.net>2016-12-09 00:10:05 +0200
commitca5c67cac218e474912ebf8360ad3db282c9a3db (patch)
treeab2c40c30eac2ed87442f6fdb832c00a75a69b2a /wizard/WizardCreateWallet.qml
parent838845d8787103b058a047fb6ce7461ac028a4f6 (diff)
parent6ca4e05167ce64f746e92254baecc80c76ef7782 (diff)
downloadmonzero-gui-ca5c67cac218e474912ebf8360ad3db282c9a3db.tar.gz
monzero-gui-ca5c67cac218e474912ebf8360ad3db282c9a3db.tar.xz
monzero-gui-ca5c67cac218e474912ebf8360ad3db282c9a3db.zip
Merge pull request #248
6ca4e05 wizard: Reset password and account name fields on wizard restart (Jaquee)
Diffstat (limited to 'wizard/WizardCreateWallet.qml')
-rw-r--r--wizard/WizardCreateWallet.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/wizard/WizardCreateWallet.qml b/wizard/WizardCreateWallet.qml
index 11d91e24..81ee9ba7 100644
--- a/wizard/WizardCreateWallet.qml
+++ b/wizard/WizardCreateWallet.qml
@@ -44,6 +44,11 @@ Item {
onOpacityChanged: visible = opacity !== 0
+ function onWizardRestarted() {
+ // reset account name field
+ uiItem.accountNameText = defaultAccountName
+ }
+
//! function called each time we display this page
function onPageOpened(settingsOblect) {
@@ -98,4 +103,8 @@ Item {
wordsTextItem.memoTextReadOnly: true
restoreHeightVisible:false
}
+
+ Component.onCompleted: {
+ parent.wizardRestarted.connect(onWizardRestarted)
+ }
}