From 6ca4e05167ce64f746e92254baecc80c76ef7782 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Thu, 8 Dec 2016 15:37:16 +0100 Subject: wizard: Reset password and account name fields on wizard restart --- wizard/WizardCreateWallet.qml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'wizard/WizardCreateWallet.qml') diff --git a/wizard/WizardCreateWallet.qml b/wizard/WizardCreateWallet.qml index bef91bc2..759dd06b 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) + } } -- cgit v1.2.3