Always disconnect signals on aborted reply objects
authorBea Lam <bea.lam@nokia.com>
Fri, 12 Aug 2011 04:20:38 +0000 (14:20 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 29 Aug 2011 23:55:55 +0000 (01:55 +0200)
commite32deb72e8559afae0b29325f9b13ab6a8a0c7c3
tree766b05388929dc8d3d1d0c0a8adf29e0859cd915
parent4f0e074a5ea3365e3680c1e92e46211795cf6019
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.

(cherry picked from commit d3599ab224f00915045562562c7fd4d6b9b9aeb4)

Task-number: QTBUG-20842
Change-Id: I812ddc1feb03ee824aa0b32e1aca3fee9344c448
Reviewed-on: http://codereview.qt.nokia.com/2893
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>