summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qurl.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-01-07 10:32:33 +0100
committerThiago Macieira <thiago.macieira@nokia.com>2010-01-07 10:33:33 +0100
commit089ee7094eabb2058b478f5d2f306a69f6c0b3bf (patch)
tree9e3e2dae82196e99cbc89860a33e086018cd9283 /src/corelib/io/qurl.cpp
parent51f92c1a4f66f658b3c3b7f034bb8dd661a0d57d (diff)
Make an empty QUrl also be considered non-detached (d == 0).
Reviewed-by: Trust Me
Diffstat (limited to 'src/corelib/io/qurl.cpp')
-rw-r--r--src/corelib/io/qurl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qurl.cpp b/src/corelib/io/qurl.cpp
index 1882e92dc3..1ba5e3f64a 100644
--- a/src/corelib/io/qurl.cpp
+++ b/src/corelib/io/qurl.cpp
@@ -5928,7 +5928,7 @@ void QUrl::detach()
*/
bool QUrl::isDetached() const
{
- return !d || d->ref == 1;
+ return d && d->ref == 1;
}