wizard: Reset password and account name fields on wizard restart

This commit is contained in:
Jaquee
2016-12-08 15:37:16 +01:00
parent 26abdee5c4
commit 6ca4e05167
4 changed files with 27 additions and 1 deletions

View File

@@ -64,6 +64,12 @@ Item {
return true
}
function onWizardRestarted(){
// Reset password fields
passwordItem.password = "";
retypePasswordItem.password = "";
}
function handlePassword() {
// allow to forward step only if passwords match
@@ -178,6 +184,6 @@ Item {
}
Component.onCompleted: {
console.log
parent.wizardRestarted.connect(onWizardRestarted)
}
}