summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2017-11-15 21:47:16 +0100
committerSimon Rettberg2017-11-15 21:47:16 +0100
commit66f8489fb67075b04ccb4b1c6ecc58de0961992f (patch)
tree37100d5abe19fb4d04560d43c1ce2448f2b03199
parentUse Qt 5 (diff)
downloadvmchooser2-66f8489fb67075b04ccb4b1c6ecc58de0961992f.tar.gz
vmchooser2-66f8489fb67075b04ccb4b1c6ecc58de0961992f.tar.xz
vmchooser2-66f8489fb67075b04ccb4b1c6ecc58de0961992f.zip
Fix passing of location ids in list request
-rw-r--r--src/httpxmldownloader.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/httpxmldownloader.cpp b/src/httpxmldownloader.cpp
index 45d1e79..56b256e 100644
--- a/src/httpxmldownloader.cpp
+++ b/src/httpxmldownloader.cpp
@@ -10,7 +10,9 @@ HttpXmlDownloader::HttpXmlDownloader() {
QNetworkReply* HttpXmlDownloader::makeRequest(const QString& xmlurl, const QString& locationIds) {
QUrl url(xmlurl);
if (!locationIds.isEmpty()) {
- QUrlQuery(url).addQueryItem("locations", locationIds);
+ QUrlQuery query(url);
+ query.addQueryItem("locations", locationIds);
+ url.setQuery(query);
}
return nam->get(QNetworkRequest(url));
}