summaryrefslogtreecommitdiffstats
path: root/src/network/access/qnetworkreplyimpl.cpp
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-02-17 06:16:55 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-03-19 02:11:19 (GMT)
commit39818f933b958d504b9cc18487658209d1df22da (patch)
treeb88fcbfbfda7d57866bab0e391360521c3f87af0 /src/network/access/qnetworkreplyimpl.cpp
parent777843c18c9b62af90436ba03036027c9222eadf (diff)
downloadQt-39818f933b958d504b9cc18487658209d1df22da.zip
Qt-39818f933b958d504b9cc18487658209d1df22da.tar.gz
Qt-39818f933b958d504b9cc18487658209d1df22da.tar.bz2
Don't emit open signal on session close/error.
Diffstat (limited to 'src/network/access/qnetworkreplyimpl.cpp')
-rw-r--r--src/network/access/qnetworkreplyimpl.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/network/access/qnetworkreplyimpl.cpp b/src/network/access/qnetworkreplyimpl.cpp
index 7fc0097..9ef2ed8 100644
--- a/src/network/access/qnetworkreplyimpl.cpp
+++ b/src/network/access/qnetworkreplyimpl.cpp
@@ -262,6 +262,16 @@ void QNetworkReplyImplPrivate::_q_networkSessionConnected()
}
}
+void QNetworkReplyImplPrivate::_q_networkSessionClosed()
+{
+ if (state != Finished) {
+ state = Working;
+ error(QNetworkReply::UnknownNetworkError,
+ QCoreApplication::translate("QNetworkReply", "Network session closed."));
+ finished();
+ }
+}
+
void QNetworkReplyImplPrivate::_q_networkSessionFailed()
{
// Abort waiting replies.