diff options
author | Lorn Potter <lorn.potter@nokia.com> | 2010-07-29 02:18:41 (GMT) |
---|---|---|
committer | Lorn Potter <lorn.potter@nokia.com> | 2010-07-29 02:18:41 (GMT) |
commit | 829833e16644beab6077d07ad80f3a2b148f4e41 (patch) | |
tree | 685e3bfde0a98d9305820dff1c297662d5ce08a8 /src/plugins | |
parent | 1a06c319df618f8b91eaac08797f03d0d4272478 (diff) | |
download | Qt-829833e16644beab6077d07ad80f3a2b148f4e41.zip Qt-829833e16644beab6077d07ad80f3a2b148f4e41.tar.gz Qt-829833e16644beab6077d07ad80f3a2b148f4e41.tar.bz2 |
try harder to get cell name
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/bearer/connman/qconnmanengine.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/bearer/connman/qconnmanengine.cpp b/src/plugins/bearer/connman/qconnmanengine.cpp index 8775623..6078db9 100644 --- a/src/plugins/bearer/connman/qconnmanengine.cpp +++ b/src/plugins/bearer/connman/qconnmanengine.cpp @@ -548,8 +548,8 @@ QString QConnmanEngine::typeToBearer(const QString &type) if(type == "bluetooth") return "Bluetooth"; if(type == "cellular") { - return "Cellular"; - // not handled: CDMA2000 HSPA + return "2G"; + // not handled: CDMA2000 HSPA WCDMA } if(type == "wimax") return "WiMax"; @@ -614,6 +614,9 @@ void QConnmanEngine::addServiceConfiguration(const QString &servicePath) if(serv->getType() == "Cellular") { networkName = serv->getAPN(); + if(networkName.isEmpty()) { + networkName = serv->getName(); + } } cpPriv->name = networkName; @@ -701,6 +704,9 @@ void QConnmanEngine::addNetworkConfiguration(const QString &networkPath) bearerName = "WCDMA"; } networkName = serv->getAPN(); + if(networkName.isEmpty()) { + networkName = serv->getName(); + } } cpPriv->name = networkName; |