added an empty string check for the server name and user name change fields
This commit is contained in:
parent
6fd1ea26ee
commit
ed6351f8f1
2 changed files with 17 additions and 4 deletions
|
|
@ -102,6 +102,7 @@ PageType {
|
|||
headerText: qsTr("Server name")
|
||||
textFieldText: name
|
||||
textField.maximumLength: 30
|
||||
checkEmptyText: true
|
||||
}
|
||||
|
||||
BasicButtonType {
|
||||
|
|
@ -110,10 +111,14 @@ PageType {
|
|||
text: qsTr("Save")
|
||||
|
||||
onClicked: {
|
||||
if (serverName.textFieldText === "") {
|
||||
return
|
||||
}
|
||||
|
||||
if (serverName.textFieldText !== name) {
|
||||
name = serverName.textFieldText
|
||||
serverNameEditDrawer.visible = false
|
||||
}
|
||||
serverNameEditDrawer.visible = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue