diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-02-17 06:16:55 (GMT) |
---|---|---|
committer | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-03-19 02:11:19 (GMT) |
commit | 39818f933b958d504b9cc18487658209d1df22da (patch) | |
tree | b88fcbfbfda7d57866bab0e391360521c3f87af0 /src/network/access/qnetworkreplyimpl.cpp | |
parent | 777843c18c9b62af90436ba03036027c9222eadf (diff) | |
download | Qt-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.cpp | 10 |
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. |