summaryrefslogtreecommitdiffstats
path: root/src/declarative/extra
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/extra')
-rw-r--r--src/declarative/extra/qmlxmllistmodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/extra/qmlxmllistmodel.cpp b/src/declarative/extra/qmlxmllistmodel.cpp
index b1ad127..077e9a9 100644
--- a/src/declarative/extra/qmlxmllistmodel.cpp
+++ b/src/declarative/extra/qmlxmllistmodel.cpp
@@ -616,6 +616,7 @@ void QmlXmlListModel::requestFinished()
{
Q_D(QmlXmlListModel);
if (d->reply->error() != QNetworkReply::NoError) {
+ disconnect(d->reply, 0, this, 0);
d->reply->deleteLater();
d->reply = 0;
d->status = Error;
@@ -623,6 +624,7 @@ void QmlXmlListModel::requestFinished()
d->status = Idle;
QByteArray data = d->reply->readAll();
d->queryId = d->qmlXmlQuery.doQuery(d->query, d->namespaces, data, &d->roleObjects);
+ disconnect(d->reply, 0, this, 0);
d->reply->deleteLater();
d->reply = 0;
}