summaryrefslogtreecommitdiffstats
path: root/src/declarative/util
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-05-12 03:56:44 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-05-12 03:57:44 (GMT)
commit29450fd82c2c8efdc296a051f6a8fac2bd3fa76a (patch)
tree371956a8a7789ef0a6ee615fbe93a2446971cea7 /src/declarative/util
parentb3a06e47bc66c36de8558ab7bc9817ed2518ae9c (diff)
downloadQt-29450fd82c2c8efdc296a051f6a8fac2bd3fa76a.zip
Qt-29450fd82c2c8efdc296a051f6a8fac2bd3fa76a.tar.gz
Qt-29450fd82c2c8efdc296a051f6a8fac2bd3fa76a.tar.bz2
Avoid warning (and possible future crash) upon reload.
Task-number: QTBUG-10555
Diffstat (limited to 'src/declarative/util')
-rw-r--r--src/declarative/util/qdeclarativexmllistmodel.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/declarative/util/qdeclarativexmllistmodel.cpp b/src/declarative/util/qdeclarativexmllistmodel.cpp
index f02ed16..f1a00989 100644
--- a/src/declarative/util/qdeclarativexmllistmodel.cpp
+++ b/src/declarative/util/qdeclarativexmllistmodel.cpp
@@ -796,8 +796,11 @@ void QDeclarativeXmlListModel::reload()
if (d->reply) {
d->reply->abort();
- d->reply->deleteLater();
- d->reply = 0;
+ if (d->reply) {
+ // abort will generally have already done this (and more)
+ d->reply->deleteLater();
+ d->reply = 0;
+ }
}
if (!d->xml.isEmpty()) {