aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-07-07 19:25:12 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2023-07-07 19:25:12 +0200
commit51e62761ee8e8cd868c5f2a7eb63d54de5b71d6a (patch)
treef035df2cb9f6bc37e1bfba664b07578799bf4c5b
parent6fcdac0d36865eadc2454244ce03c77e6eed767b (diff)
downloadPrismLauncher-51e62761ee8e8cd868c5f2a7eb63d54de5b71d6a.tar.gz
PrismLauncher-51e62761ee8e8cd868c5f2a7eb63d54de5b71d6a.tar.bz2
PrismLauncher-51e62761ee8e8cd868c5f2a7eb63d54de5b71d6a.zip
fix: improve QUrl construction
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
-rw-r--r--launcher/Application.cpp2
-rw-r--r--launcher/ui/pages/global/APIPage.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index 34e1320a..7858d713 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -691,7 +691,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
// Meta URL
m_settings->registerSetting("MetaURLOverride", "");
- QUrl metaUrl = m_settings->get("MetaURLOverride").toString();
+ QUrl metaUrl(m_settings->get("MetaURLOverride").toString());
// get rid of invalid meta urls
if (!metaUrl.isValid() || metaUrl.scheme() != "http" || metaUrl.scheme() != "https")
diff --git a/launcher/ui/pages/global/APIPage.cpp b/launcher/ui/pages/global/APIPage.cpp
index fab31dbd..668aa007 100644
--- a/launcher/ui/pages/global/APIPage.cpp
+++ b/launcher/ui/pages/global/APIPage.cpp
@@ -165,7 +165,7 @@ void APIPage::applySettings()
QString msaClientID = ui->msaClientID->text();
s->set("MSAClientIDOverride", msaClientID);
- QUrl metaURL = ui->metaURL->text();
+ QUrl metaURL(ui->metaURL->text());
// Add required trailing slash
if (!metaURL.isEmpty() && !metaURL.path().endsWith('/'))
{