Always disconnect signals on aborted reply objects
authorBea Lam <bea.lam@nokia.com>
Mon, 22 Aug 2011 04:44:26 +0000 (14:44 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 22 Aug 2011 07:05:29 +0000 (09:05 +0200)
commit190cd9180b595897bc0b56ef32df5d18dbb80a3d
tree26c383590a57c762e6277821c5741a9a5c0fedd5
parente5166af2e4856668ea45d31e0d6fb044dc9ab1af
Always disconnect signals on aborted reply objects

reload() did not disconnect the model from an aborted reply's
signals, and if it received a finished() signal from the aborted
reply it crashed when trying to access the deleted d->reply.

Task-number: QTBUG-20842

(cherry-picked from commit d3599ab224f00915045562562c7fd4d6b9b9aeb4
in 4.8)

Change-Id: I09a4b04ccdcf04d0ad19052475376e4d1910b7b9
Reviewed-on: http://codereview.qt.nokia.com/3282
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bea Lam <bea.lam@nokia.com>
src/declarative/util/qdeclarativexmllistmodel.cpp