diff options
author | Jonathan Bauer | 2018-12-10 18:43:03 +0100 |
---|---|---|
committer | Jonathan Bauer | 2018-12-10 18:43:03 +0100 |
commit | 29234d0fbd6859734f9ae962fbc10bbde56bda35 (patch) | |
tree | 383ec9d66a68b7a2645752c37b3bd7987a2141ae /src/dialog.cpp | |
parent | formattig: move runscript parsing (diff) | |
download | vmchooser2-29234d0fbd6859734f9ae962fbc10bbde56bda35.tar.gz vmchooser2-29234d0fbd6859734f9ae962fbc10bbde56bda35.tar.xz vmchooser2-29234d0fbd6859734f9ae962fbc10bbde56bda35.zip |
support configurable URLs for list, news and help
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..."; |