diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-03-01 07:45:35 (GMT) |
---|---|---|
committer | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-03-02 05:42:32 (GMT) |
commit | d042a00b5828961e1e1fa82017717b5f72dde9ef (patch) | |
tree | 600353f03174c0bfe80d964c5a6d2500e5df235d /src/network/bearer/qnetworksession.cpp | |
parent | ef30a6f336d55c813423bf139d8363f50181179f (diff) | |
download | Qt-d042a00b5828961e1e1fa82017717b5f72dde9ef.zip Qt-d042a00b5828961e1e1fa82017717b5f72dde9ef.tar.gz Qt-d042a00b5828961e1e1fa82017717b5f72dde9ef.tar.bz2 |
Bearer management changes from Qt Mobility (fca9891).
fca98911b75ce12e70d93cfc2932a9759758a605
Diffstat (limited to 'src/network/bearer/qnetworksession.cpp')
-rw-r--r-- | src/network/bearer/qnetworksession.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/bearer/qnetworksession.cpp b/src/network/bearer/qnetworksession.cpp index 6a82791..f0d7ede 100644 --- a/src/network/bearer/qnetworksession.cpp +++ b/src/network/bearer/qnetworksession.cpp @@ -275,6 +275,8 @@ void QNetworkSession::open() { if (d) d->open(); + else + emit error(InvalidConfigurationError); } /*! @@ -308,6 +310,8 @@ bool QNetworkSession::waitForOpened(int msecs) QEventLoop* loop = new QEventLoop(this); QObject::connect(d, SIGNAL(quitPendingWaitsForOpened()), loop, SLOT(quit())); + QObject::connect(this, SIGNAL(error(QNetworkSession::SessionError)), + loop, SLOT(quit())); //final call if (msecs>=0) |