diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-05-13 00:49:52 (GMT) |
---|---|---|
committer | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-05-14 03:02:28 (GMT) |
commit | e6efa3ea81dff9eb0ade1c2ba868c272ccfcc958 (patch) | |
tree | 0c4f50afef9228ae047ab02205af7b8a038b84dc /examples/network/bearermonitor/bearermonitor.cpp | |
parent | 08b6114240a6c02dbeb0297d0deeb538ebc3fde9 (diff) | |
download | Qt-e6efa3ea81dff9eb0ade1c2ba868c272ccfcc958.zip Qt-e6efa3ea81dff9eb0ade1c2ba868c272ccfcc958.tar.gz Qt-e6efa3ea81dff9eb0ade1c2ba868c272ccfcc958.tar.bz2 |
Bearer management changes from Qt Mobility.
9286bfcc43d38e0cb3bfd1d3f99ac7ab5d88b7e3
Diffstat (limited to 'examples/network/bearermonitor/bearermonitor.cpp')
-rw-r--r-- | examples/network/bearermonitor/bearermonitor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/network/bearermonitor/bearermonitor.cpp b/examples/network/bearermonitor/bearermonitor.cpp index 4a6c6ff..0d98eff 100644 --- a/examples/network/bearermonitor/bearermonitor.cpp +++ b/examples/network/bearermonitor/bearermonitor.cpp @@ -255,6 +255,7 @@ void BearerMonitor::onlineStateChanged(bool isOnline) void BearerMonitor::registerNetwork() { QTreeWidgetItem *item = treeWidget->currentItem(); + if (!item) return; QNetworkConfiguration configuration = manager.configurationFromIdentifier(item->data(0, Qt::UserRole).toString()); @@ -276,6 +277,7 @@ void BearerMonitor::registerNetwork() void BearerMonitor::unregisterNetwork() { QTreeWidgetItem *item = treeWidget->currentItem(); + if (!item) return; QNetworkConfiguration configuration = manager.configurationFromIdentifier(item->data(0, Qt::UserRole).toString()); @@ -384,6 +386,7 @@ void BearerMonitor::createSessionFor(QTreeWidgetItem *item) void BearerMonitor::createNewSession() { QTreeWidgetItem *item = treeWidget->currentItem(); + if (!item) return; createSessionFor(item); } |