diff options
author | Sami Lempinen <sami.lempinen@nokia.com> | 2011-05-11 13:14:36 (GMT) |
---|---|---|
committer | Sami Lempinen <sami.lempinen@nokia.com> | 2011-05-11 13:15:12 (GMT) |
commit | 3b1c4fa9a4822f50a4bb66cfb0c8e1445ea22e6b (patch) | |
tree | eda7176d87058e1b0f8c08bf08502c42cc6a954d /src/network/access/qnetworkreplyimpl.cpp | |
parent | eb07f3c1ad33b208d65d0af550ec279bac390c66 (diff) | |
parent | 1a742a039802b32cfe2a92d8ef1a04c3a21a964f (diff) | |
download | Qt-3b1c4fa9a4822f50a4bb66cfb0c8e1445ea22e6b.zip Qt-3b1c4fa9a4822f50a4bb66cfb0c8e1445ea22e6b.tar.gz Qt-3b1c4fa9a4822f50a4bb66cfb0c8e1445ea22e6b.tar.bz2 |
Merge remote-tracking branch 'qt/4.8'
Conflicts:
src/s60installs/bwins/QtGuiu.def
src/s60installs/eabi/QtGuiu.def
Diffstat (limited to 'src/network/access/qnetworkreplyimpl.cpp')
-rw-r--r-- | src/network/access/qnetworkreplyimpl.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/network/access/qnetworkreplyimpl.cpp b/src/network/access/qnetworkreplyimpl.cpp index 9eb505d..34fd7a7 100644 --- a/src/network/access/qnetworkreplyimpl.cpp +++ b/src/network/access/qnetworkreplyimpl.cpp @@ -90,10 +90,10 @@ void QNetworkReplyImplPrivate::_q_startOperation() return; } + if (!backend->start()) { #ifndef QT_NO_BEARERMANAGEMENT - if (!backend->start()) { // ### we should call that method even if bearer is not used // backend failed to start because the session state is not Connected. - // QNetworkAccessManager will call reply->backend->start() again for us when the session + // QNetworkAccessManager will call _q_startOperation again for us when the session // state changes. state = WaitingForSession; @@ -109,11 +109,20 @@ void QNetworkReplyImplPrivate::_q_startOperation() session->open(); } else { qWarning("Backend is waiting for QNetworkSession to connect, but there is none!"); + state = Working; + error(QNetworkReplyImpl::UnknownNetworkError, + QCoreApplication::translate("QNetworkReply", "Network session error.")); + finished(); } - +#else + qWarning("Backend start failed"); + state = Working; + error(QNetworkReplyImpl::UnknownNetworkError, + QCoreApplication::translate("QNetworkReply", "backend start error.")); + finished(); +#endif return; } -#endif if (backend && backend->isSynchronous()) { state = Finished; |