From 29234d0fbd6859734f9ae962fbc10bbde56bda35 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 10 Dec 2018 18:43:03 +0100 Subject: support configurable URLs for list, news and help --- src/dialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/dialog.cpp') diff --git a/src/dialog.cpp b/src/dialog.cpp index 5035b56..9472269 100644 --- a/src/dialog.cpp +++ b/src/dialog.cpp @@ -417,7 +417,7 @@ void Dialog::onCenterTimer() { * Download lecture list, news and help */ void Dialog::downloadData(const QString& locationIds) { - QUrl listUrl(g_urlBase + "list"); + QUrl listUrl(g_urlList); QUrlQuery listQuery(listUrl); if (!locationIds.isEmpty()) { @@ -489,7 +489,7 @@ void Dialog::downloadData(const QString& locationIds) { }); // // News - FileDownloader::download(QUrl(g_urlBase + "news"), [this](QNetworkReply::NetworkError err, const QByteArray& data) { + FileDownloader::download(QUrl(g_urlNews), [this](QNetworkReply::NetworkError err, const QByteArray& data) { if (err != QNetworkReply::NoError) { if (g_debugMode) { qDebug() << "Could not get news. Try to get cached news."; @@ -560,7 +560,7 @@ void Dialog::downloadData(const QString& locationIds) { }); // // Download help - FileDownloader::download(QUrl(g_urlBase + "help"), [this](QNetworkReply::NetworkError err, const QByteArray& data) { + FileDownloader::download(QUrl(g_urlHelp), [this](QNetworkReply::NetworkError err, const QByteArray& data) { if (err != QNetworkReply::NoError) { if (g_debugMode) { qDebug() << "Could not get help xml. Try to get cached help..."; -- cgit v1.2.3-55-g7522