From 1c48050fc075ade02c2bb79289d5bae82027fe90 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Tue, 14 Aug 2018 14:59:02 +0800 Subject: [PATCH] Additionally check "://". --- qml/Login.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/Login.qml b/qml/Login.qml index 215290e..e86dc20 100644 --- a/qml/Login.qml +++ b/qml/Login.qml @@ -136,7 +136,7 @@ Page { } onClicked: { - if (!serverField.text.startsWith("http")) { + if (!(serverField.text.startsWith("http") && serverField.text.includes("://"))) { loginButtonTooltip.text = "Server address should start with http(s)://" loginButtonTooltip.open() return