From 2452f630d0b594b63522cb8a15073edbb11ecfd9 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sun, 17 Jan 2021 00:30:33 +0000 Subject: [PATCH] Load serverAddress using QUrl::fromUserInput() Fixes login when 'https://' is not added to the server url (cherry picked from commit a653be8be890464e575e730d6063a3e647008e14) --- src/controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller.cpp b/src/controller.cpp index 07919d3b7..26f0e48bf 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -105,7 +105,7 @@ void Controller::loginWithCredentials(const QString &serverAddr, const QString & } auto conn = new Connection(this); - const QUrl serverUrl = QUrl(serverAddr); + const QUrl serverUrl = QUrl::fromUserInput(serverAddr); // we are using a fake mixd since resolveServer just set the homeserver url :sigh: conn->resolveServer("@username:" + serverUrl.host() + ":" + QString::number(serverUrl.port(443)));