summaryrefslogtreecommitdiffstats
path: root/examples/network
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-12-15 04:16:36 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-12-15 04:31:40 (GMT)
commitc031e5808ee406277a5401c69801e5c6e2ebfaea (patch)
treed4785df3040bf31ebaf2f111f9afdc76941310e5 /examples/network
parent19b77ecfcdae8a68cfec5d89cf510b9cc837bed2 (diff)
downloadQt-c031e5808ee406277a5401c69801e5c6e2ebfaea.zip
Qt-c031e5808ee406277a5401c69801e5c6e2ebfaea.tar.gz
Qt-c031e5808ee406277a5401c69801e5c6e2ebfaea.tar.bz2
Fix invalid configurations being added to bearermonitor list.
Diffstat (limited to 'examples/network')
-rw-r--r--examples/network/bearermonitor/bearermonitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/bearermonitor/bearermonitor.cpp b/examples/network/bearermonitor/bearermonitor.cpp
index 75ffb01..bfa3d1f 100644
--- a/examples/network/bearermonitor/bearermonitor.cpp
+++ b/examples/network/bearermonitor/bearermonitor.cpp
@@ -226,7 +226,7 @@ void BearerMonitor::updateConfigurations()
if (defaultConfiguration.type() == QNetworkConfiguration::ServiceNetwork)
updateSnapConfiguration(defaultItem, defaultConfiguration);
- } else {
+ } else if (defaultConfiguration.isValid()) {
configurationAdded(defaultConfiguration);
}