summaryrefslogtreecommitdiffstats
path: root/src/network/bearer/qnetworksession.cpp
diff options
context:
space:
mode:
authorPeter Yard <peter.yard@nokia.com>2010-12-22 06:04:57 (GMT)
committerPeter Yard <peter.yard@nokia.com>2010-12-22 06:04:57 (GMT)
commit53b018a42813e44787aa1edc35d59feaa86cf9d7 (patch)
tree7cce8f18faf26a87cfb5f27d1417c2a2ec86470c /src/network/bearer/qnetworksession.cpp
parent55c32b91a298d52bd7c29968d21b4b7a5ee741e4 (diff)
parentafa22a20c1b89960b647b0e3a9dc390fe6f87eae (diff)
downloadQt-53b018a42813e44787aa1edc35d59feaa86cf9d7.zip
Qt-53b018a42813e44787aa1edc35d59feaa86cf9d7.tar.gz
Qt-53b018a42813e44787aa1edc35d59feaa86cf9d7.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7
Diffstat (limited to 'src/network/bearer/qnetworksession.cpp')
-rw-r--r--src/network/bearer/qnetworksession.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/bearer/qnetworksession.cpp b/src/network/bearer/qnetworksession.cpp
index 226c3c5..db1a37c 100644
--- a/src/network/bearer/qnetworksession.cpp
+++ b/src/network/bearer/qnetworksession.cpp
@@ -310,8 +310,9 @@ bool QNetworkSession::waitForOpened(int msecs)
if (d->isOpen)
return true;
- if (d->state != Connecting)
+ if (!(d->state == Connecting || d->state == Connected)) {
return false;
+ }
QEventLoop* loop = new QEventLoop(this);
QObject::connect(d, SIGNAL(quitPendingWaitsForOpened()),