Additionally check "://".
This commit is contained in:
@@ -136,7 +136,7 @@ Page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (!serverField.text.startsWith("http")) {
|
if (!(serverField.text.startsWith("http") && serverField.text.includes("://"))) {
|
||||||
loginButtonTooltip.text = "Server address should start with http(s)://"
|
loginButtonTooltip.text = "Server address should start with http(s)://"
|
||||||
loginButtonTooltip.open()
|
loginButtonTooltip.open()
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user