emit QNetWorkAccessManager::finished on QNetworkReply::abort()
authorMartin Petersson <martin.petersson@nokia.com>
Mon, 9 May 2011 11:56:47 +0000 (13:56 +0200)
committerOlivier Goffart <olivier.goffart@nokia.com>
Wed, 11 May 2011 14:39:59 +0000 (16:39 +0200)
commit483807d4f24f9fa39727f0a83b31435d2774386a
treecdc5d9e0bf976da2a9af8fc742b3cda3bcdac5c2
parent01cbab598a7c4f199fa5782efdf6dc5666d04ed3
emit QNetWorkAccessManager::finished on QNetworkReply::abort()

If we can not get online when the request is made then we are in the
WaitingForSession state. This will happen for example if the device
is in flight mode. This fix follows the same logic as in
_q_networkSessionFailed, but we should look into why we have the
WaitingForSession check in finished().

Task-number: QT-4747
Reviewed-by: Markus Goetz
(cherry picked from commit 0c9cb9a34d6b472cb53bf1af4616af55b593b616)
src/network/access/qnetworkreplyimpl.cpp