summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qurl.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-01-07 16:06:12 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-01-07 16:06:12 (GMT)
commite77f4301e8154212d1410a762e0e0279c5b3069c (patch)
treea51768c3763d426567816cc2b9d5b6a59e56990a /src/corelib/io/qurl.cpp
parent606294044df3cf318bd6bb6f2e73389d84e3a032 (diff)
parent2f2837888324b6d75ac1be170790772d1fcf5f17 (diff)
downloadQt-e77f4301e8154212d1410a762e0e0279c5b3069c.zip
Qt-e77f4301e8154212d1410a762e0e0279c5b3069c.tar.gz
Qt-e77f4301e8154212d1410a762e0e0279c5b3069c.tar.bz2
Merge branch 4.7 into qt-master-from-4.7
Diffstat (limited to 'src/corelib/io/qurl.cpp')
-rw-r--r--src/corelib/io/qurl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/io/qurl.cpp b/src/corelib/io/qurl.cpp
index 6ec5562..b39867c 100644
--- a/src/corelib/io/qurl.cpp
+++ b/src/corelib/io/qurl.cpp
@@ -4309,6 +4309,7 @@ void QUrl::setUrl(const QString &url)
*/
void QUrl::setUrl(const QString &url, ParsingMode parsingMode)
{
+ detach();
// escape all reserved characters and delimiters
// reserved = gen-delims / sub-delims
if (parsingMode != TolerantMode) {