summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Rettberg2017-11-17 18:36:23 +0100
committerSimon Rettberg2017-11-17 18:36:23 +0100
commite90644ffde93b94c8f54968888f94e48c421e982 (patch)
tree0e578f68694775ba1db97e1dc7ec382f72cccb4a /src
parentTry to fix segfault when selecting last session (needs verification) (diff)
parentFix passing of location ids in list request (diff)
downloadvmchooser2-e90644ffde93b94c8f54968888f94e48c421e982.tar.gz
vmchooser2-e90644ffde93b94c8f54968888f94e48c421e982.tar.xz
vmchooser2-e90644ffde93b94c8f54968888f94e48c421e982.zip
Merge branch 'master' of git.openslx.org:openslx-ng/vmchooser2
Diffstat (limited to 'src')
-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));
}