summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Petersson <Martin.Petersson@nokia.com>2012-06-13 12:38:51 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-20 10:05:49 +0200
commit79b14f42ba2062252bad5e5ad7c7986b967f6f6a (patch)
tree47a3006dfb9a0909f2a6fa0fb9f20a0e89239420 /src
parentc752bb8eb8c57791f0250bcde5dbf964361c5b26 (diff)
QUrl::setEncodedQueryItems should replace
If there is already a query string present in the url. It should be replace when setEncodedQueryItems is called again. Task-number: QTBUG-26148 Change-Id: I2bd4e1f5d9b4161d64556062e97141888ad89b3b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/io/qurlquery.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qurlquery.h b/src/corelib/io/qurlquery.h
index 4b9d104498..5939fd938a 100644
--- a/src/corelib/io/qurlquery.h
+++ b/src/corelib/io/qurlquery.h
@@ -145,7 +145,7 @@ inline void QUrl::removeAllEncodedQueryItems(const QByteArray &key)
inline void QUrl::setEncodedQueryItems(const QList<QPair<QByteArray, QByteArray> > &qry)
{
- QUrlQuery q(*this);
+ QUrlQuery q;
QList<QPair<QByteArray, QByteArray> >::ConstIterator it = qry.constBegin();
for ( ; it != qry.constEnd(); ++it)
q.addQueryItem(QString::fromUtf8(it->first), QString::fromUtf8(it->second));