summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@nokia.com>2010-08-17 11:11:28 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-08-25 05:49:35 (GMT)
commit35e1c730c25d9e5c1af9715072754126e4b3c0c1 (patch)
tree93b8d669b726e01830a6fd0b8988b833317ab0bd /src/plugins
parente141cb25e57b40af839abf872f65895724a39e88 (diff)
downloadQt-35e1c730c25d9e5c1af9715072754126e4b3c0c1.zip
Qt-35e1c730c25d9e5c1af9715072754126e4b3c0c1.tar.gz
Qt-35e1c730c25d9e5c1af9715072754126e4b3c0c1.tar.bz2
QNetworkSession::close() method now send closed() signal while faking disconnection.
Fixes: NB#185586 - QNetworkSession::closed() signal never sent when QNetworkSession::close() is called.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/bearer/icd/qnetworksession_impl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/bearer/icd/qnetworksession_impl.cpp b/src/plugins/bearer/icd/qnetworksession_impl.cpp
index 3170bf6..8013d30 100644
--- a/src/plugins/bearer/icd/qnetworksession_impl.cpp
+++ b/src/plugins/bearer/icd/qnetworksession_impl.cpp
@@ -888,12 +888,12 @@ void QNetworkSessionPrivateImpl::close()
state = QNetworkSession::Closing;
emit stateChanged(state);
+ // we fake a disconnection, session error is sent
+ updateState(QNetworkSession::Disconnected);
+
opened = false;
isOpen = false;
- // we fake a disconnection, session error is not sent
- updateState(QNetworkSession::Disconnected);
-
icd.disconnect(ICD_CONNECTION_FLAG_APPLICATION_EVENT);
startTime = QDateTime();
} else {