diff options
author | Lorn Potter <lorn.potter@nokia.com> | 2010-03-25 09:04:29 (GMT) |
---|---|---|
committer | Lorn Potter <lorn.potter@nokia.com> | 2010-03-25 09:04:29 (GMT) |
commit | 60eac381b621a92ab057ee6e5e55bcd50f5dc629 (patch) | |
tree | 6753955a5e65a711bc59914284bda815fbfc31f7 /src/plugins | |
parent | 8cc346604ed1e1504964772613ed9fe531361f69 (diff) | |
download | Qt-60eac381b621a92ab057ee6e5e55bcd50f5dc629.zip Qt-60eac381b621a92ab057ee6e5e55bcd50f5dc629.tar.gz Qt-60eac381b621a92ab057ee6e5e55bcd50f5dc629.tar.bz2 |
don't just return the first key here.
this fixes associating..
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/bearer/corewlan/qcorewlanengine.mm | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins/bearer/corewlan/qcorewlanengine.mm b/src/plugins/bearer/corewlan/qcorewlanengine.mm index 0e9e4bd..a366d00 100644 --- a/src/plugins/bearer/corewlan/qcorewlanengine.mm +++ b/src/plugins/bearer/corewlan/qcorewlanengine.mm @@ -200,7 +200,6 @@ void QCoreWlanEngine::connectToId(const QString &id) const QString idHash2 = QString::number(qHash(QLatin1String("corewlan:") + getNetworkNameFromSsid(ptr->name))); bool using8021X = false; - if (idHash2 != id) { NSArray *array = [CW8021XProfile allUser8021XProfiles]; @@ -695,9 +694,7 @@ QString QCoreWlanEngine::getNetworkNameFromSsid(const QString &ssid) if(ij.key() == ssid) { return i.key(); } - } - return map.key(ssid); } return QString(); } |