summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qurl.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2011-01-06 13:51:04 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2011-01-06 14:00:50 (GMT)
commit91596c9c08208690894ec11a3a99eac57ad17f2b (patch)
treec63a555b2103f3f3732e3aac3bfa59f7c0ce15a9 /src/corelib/io/qurl.cpp
parent5c3010cf467d437ccfc8a263bed167e979614504 (diff)
downloadQt-91596c9c08208690894ec11a3a99eac57ad17f2b.zip
Qt-91596c9c08208690894ec11a3a99eac57ad17f2b.tar.gz
Qt-91596c9c08208690894ec11a3a99eac57ad17f2b.tar.bz2
QUrl::setUrl should call detach
Task-number: QTBUG-16425 Reviewed-by: Gabriel Reviewed-by: Markus Goetz
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 6a3037d..45f908d 100644
--- a/src/corelib/io/qurl.cpp
+++ b/src/corelib/io/qurl.cpp
@@ -4262,6 +4262,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) {