diff options
Diffstat (limited to 'src/httpxmldownloader.cpp')
-rw-r--r-- | src/httpxmldownloader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/httpxmldownloader.cpp b/src/httpxmldownloader.cpp index bebcfd0..45d1e79 100644 --- a/src/httpxmldownloader.cpp +++ b/src/httpxmldownloader.cpp @@ -1,6 +1,7 @@ #include "httpxmldownloader.h" #include <QDebug> +#include <QUrlQuery> HttpXmlDownloader::HttpXmlDownloader() { nam = new QNetworkAccessManager(this); @@ -9,7 +10,7 @@ HttpXmlDownloader::HttpXmlDownloader() { QNetworkReply* HttpXmlDownloader::makeRequest(const QString& xmlurl, const QString& locationIds) { QUrl url(xmlurl); if (!locationIds.isEmpty()) { - url.addQueryItem("locations", locationIds); + QUrlQuery(url).addQueryItem("locations", locationIds); } return nam->get(QNetworkRequest(url)); } |