diff options
Diffstat (limited to 'src/dialog.cpp')
-rw-r--r-- | src/dialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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..."; |