Fix error reporting in QNetworkReplyHttpImplPrivate
authorShane Kearns <ext-shane.2.kearns@nokia.com>
Tue, 10 Apr 2012 16:54:22 +0000 (17:54 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 11 Apr 2012 20:20:10 +0000 (22:20 +0200)
commitdc325aab1820029f6f665080fbadfe11a0ff9c7e
treeb1a91a463c0bc233353b527a546a6e3572db2a97
parent680f35ec1ee7cad8881a5fd9edadc6594cb2fe71
Fix error reporting in QNetworkReplyHttpImplPrivate

When errors are detected synchronously in _q_startOperation,
they were not reported. This is because unlike the generic
QNetworkReplyImpl the function is called directly rather than
using a queued connection.
In order to report errors, use the _q_error and _q_finished slots
so that signals are emitted after returning to the event loop
i.e. after the application had a chance to connect the QNetworkReply

Change-Id: I8a7bbe79a934f4634fb4e0572ebb5479dfc5f489
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
src/network/access/qnetworkreplyhttpimpl.cpp