Fix login with fields that were not taken account.
This commit is contained in:
parent
93bafc3700
commit
e79af38bb2
1 changed files with 20 additions and 13 deletions
|
|
@ -324,6 +324,14 @@ LoginLayout {
|
||||||
domain.errorMessage = ""
|
domain.errorMessage = ""
|
||||||
errorText.clear()
|
errorText.clear()
|
||||||
|
|
||||||
|
loginDelay.restart()
|
||||||
|
}
|
||||||
|
onPressed: trigger()
|
||||||
|
KeyNavigation.up: transportCbox
|
||||||
|
Timer{
|
||||||
|
id: loginDelay
|
||||||
|
interval: 200
|
||||||
|
onTriggered: {
|
||||||
if (usernameEdit.text.length == 0 || passwordEdit.text.length == 0 || domainEdit.text.length == 0) {
|
if (usernameEdit.text.length == 0 || passwordEdit.text.length == 0 || domainEdit.text.length == 0) {
|
||||||
if (usernameEdit.text.length == 0)
|
if (usernameEdit.text.length == 0)
|
||||||
username.errorMessage = qsTr("Veuillez saisir un nom d'utilisateur")
|
username.errorMessage = qsTr("Veuillez saisir un nom d'utilisateur")
|
||||||
|
|
@ -338,8 +346,7 @@ LoginLayout {
|
||||||
connectionButton.enabled = false
|
connectionButton.enabled = false
|
||||||
connectionButtonContent.currentIndex = 1
|
connectionButtonContent.currentIndex = 1
|
||||||
}
|
}
|
||||||
onPressed: trigger()
|
}
|
||||||
KeyNavigation.up: transportCbox
|
|
||||||
}
|
}
|
||||||
Item {
|
Item {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue