From 3ec48b4062e6a96429605e2c75a0f5dfb836ef9e Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 19 Sep 2024 15:09:01 +0800 Subject: [PATCH] Use url method instead of text field contents as url when deciding on error string in setup page Signed-off-by: Claudio Cambra --- src/gui/wizard/owncloudsetuppage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/wizard/owncloudsetuppage.cpp b/src/gui/wizard/owncloudsetuppage.cpp index b213fbb03..10dcb3029 100644 --- a/src/gui/wizard/owncloudsetuppage.cpp +++ b/src/gui/wizard/owncloudsetuppage.cpp @@ -288,7 +288,8 @@ void OwncloudSetupPage::setErrorString(const QString &err, bool retryHTTPonly) _ui.errorLabel->setVisible(false); } else { if (retryHTTPonly) { - QUrl url(_ui.leUrl->fullText()); + const auto urlString = url(); + QUrl url(urlString); if (url.scheme() == "https") { // Ask the user how to proceed when connecting to a https:// URL fails. // It is possible that the server is secured with client-side TLS certificates, -- 2.30.2