summaryrefslogtreecommitdiffstats
path: root/src/network/bearer
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-04-14 06:23:22 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-04-14 06:23:22 (GMT)
commit90de3e5c903b67b2e5f3d7dc14266fe24f1daa23 (patch)
treeb2ec0c85f2455f738d6466f129a1f4d057caffa9 /src/network/bearer
parent0def696a8d569f0895010706fb989e78b25c13c1 (diff)
downloadQt-90de3e5c903b67b2e5f3d7dc14266fe24f1daa23.zip
Qt-90de3e5c903b67b2e5f3d7dc14266fe24f1daa23.tar.gz
Qt-90de3e5c903b67b2e5f3d7dc14266fe24f1daa23.tar.bz2
Bearer management changes from Qt Mobility (7a5ff985)
7a5ff9859f5775915ae80c287f51c772599c2379
Diffstat (limited to 'src/network/bearer')
-rw-r--r--src/network/bearer/qnetworksession.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/bearer/qnetworksession.cpp b/src/network/bearer/qnetworksession.cpp
index 1bba56f..638bee7 100644
--- a/src/network/bearer/qnetworksession.cpp
+++ b/src/network/bearer/qnetworksession.cpp
@@ -225,6 +225,10 @@ QT_BEGIN_NAMESPACE
QNetworkSession::QNetworkSession(const QNetworkConfiguration& connectionConfig, QObject* parent)
: QObject(parent), d(0)
{
+ // invalid configuration
+ if (connectionConfig.identifier().isNull())
+ return;
+
foreach (QBearerEngine *engine, qNetworkConfigurationManagerPrivate()->engines()) {
if (engine->hasIdentifier(connectionConfig.identifier())) {
d = engine->createSessionBackend();