summaryrefslogtreecommitdiffstats
path: root/src/plugins/bearer/icd/qnetworksession_impl.cpp
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-02-23 03:12:44 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-02-23 03:12:44 (GMT)
commit055fa76e7575be55899127de2d254e0f0e90a1db (patch)
tree00047ce97412b53a265343a2f5a8bab92410bb7a /src/plugins/bearer/icd/qnetworksession_impl.cpp
parentb1c59bde1e29a62141a10f30a15f02bc1d59558b (diff)
downloadQt-055fa76e7575be55899127de2d254e0f0e90a1db.zip
Qt-055fa76e7575be55899127de2d254e0f0e90a1db.tar.gz
Qt-055fa76e7575be55899127de2d254e0f0e90a1db.tar.bz2
Make compile on Maemo6.
Diffstat (limited to 'src/plugins/bearer/icd/qnetworksession_impl.cpp')
-rw-r--r--src/plugins/bearer/icd/qnetworksession_impl.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/bearer/icd/qnetworksession_impl.cpp b/src/plugins/bearer/icd/qnetworksession_impl.cpp
index 6cc4a1d..a9e93e0 100644
--- a/src/plugins/bearer/icd/qnetworksession_impl.cpp
+++ b/src/plugins/bearer/icd/qnetworksession_impl.cpp
@@ -560,7 +560,7 @@ void QNetworkSessionPrivateImpl::syncStateWithInterface()
// Add the new active configuration to manager or update the old config
- if (!(engine->accessPointConfigurations.contains(privateConfiguration(activeConfig)->id)))
+ if (!engine->hasIdentifier(privateConfiguration(activeConfig)->id))
engine->addSessionConfiguration(privateConfiguration(activeConfig));
else
engine->changedSessionConfiguration(privateConfiguration(activeConfig));
@@ -924,11 +924,10 @@ void QNetworkSessionPrivateImpl::do_open()
*/
if (publicConfig.type() == QNetworkConfiguration::UserChoice) {
- if (!engine->accessPointConfigurations.contains(result)) {
+ if (!engine->hasIdentifier(result)) {
engine->addSessionConfiguration(privateConfiguration(config));
- } else {
- QNetworkConfigurationPrivatePointer priv =
- engine->accessPointConfigurations.value(result);
+ } else {
+ QNetworkConfigurationPrivatePointer priv = engine->configuration(result);
QNetworkConfiguration reference;
setPrivateConfiguration(reference, priv);
copyConfig(config, reference, false);