From 271cff9a42c2a292798647409ef10f9bf4e876be Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Tue, 6 Jun 2017 15:33:19 +0200 Subject: [PATCH] fix(ui/views/App/Main/Assistant/CreateLinphoneSipAccountWithEmail): check correctly password fields --- .../CreateLinphoneSipAccountWithEmail.qml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/linphone-desktop/ui/views/App/Main/Assistant/CreateLinphoneSipAccountWithEmail.qml b/linphone-desktop/ui/views/App/Main/Assistant/CreateLinphoneSipAccountWithEmail.qml index cd9ff41f0..fc6f00574 100644 --- a/linphone-desktop/ui/views/App/Main/Assistant/CreateLinphoneSipAccountWithEmail.qml +++ b/linphone-desktop/ui/views/App/Main/Assistant/CreateLinphoneSipAccountWithEmail.qml @@ -74,7 +74,10 @@ AssistantAbstractView { PasswordField { id: password - onTextChanged: assistantModel.password = text + onTextChanged: { + assistantModel.password = text + assistantModel.checkPassword() + } } } } @@ -86,9 +89,7 @@ AssistantAbstractView { PasswordField { id: passwordConfirmation - onTextChanged: error = password.text !== text - ? qsTr('passwordConfirmationError') - : '' + onTextChanged: assistantModel.checkPassword() } } } @@ -109,6 +110,12 @@ AssistantAbstractView { AssistantModel { id: assistantModel + function checkPassword () { + passwordConfirmation.error = password.text !== passwordConfirmation.text + ? qsTr('passwordConfirmationError') + : '' + } + configFilename: 'create-linphone-sip-account.rc' onEmailChanged: emailError = error