diff options
author | Lorn Potter <lorn.potter@nokia.com> | 2010-04-19 21:38:20 (GMT) |
---|---|---|
committer | Lorn Potter <lorn.potter@nokia.com> | 2010-04-19 21:38:20 (GMT) |
commit | b64a309f78b684bf3acb49bc6d0e9b93aa2138c5 (patch) | |
tree | ce65a0a37fc3b9cfdb26b68f4dfcf1b137c0b2c5 /src/plugins/bearer/corewlan | |
parent | 2649b5f4695680b584decf75af11dc82325cc03f (diff) | |
download | Qt-b64a309f78b684bf3acb49bc6d0e9b93aa2138c5.zip Qt-b64a309f78b684bf3acb49bc6d0e9b93aa2138c5.tar.gz Qt-b64a309f78b684bf3acb49bc6d0e9b93aa2138c5.tar.bz2 |
make sure to lock these
Diffstat (limited to 'src/plugins/bearer/corewlan')
-rw-r--r-- | src/plugins/bearer/corewlan/qcorewlanengine.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/bearer/corewlan/qcorewlanengine.mm b/src/plugins/bearer/corewlan/qcorewlanengine.mm index f54bd4d..f78fc76 100644 --- a/src/plugins/bearer/corewlan/qcorewlanengine.mm +++ b/src/plugins/bearer/corewlan/qcorewlanengine.mm @@ -286,6 +286,8 @@ QList<QNetworkConfigurationPrivate *> QScanThread::getConfigurations() void QScanThread::getUserConfigurations() { + QMutexLocker locker(&mutex); + QMacCocoaAutoReleasePool pool; userProfiles.clear(); @@ -354,6 +356,8 @@ void QScanThread::getUserConfigurations() QString QScanThread::getSsidFromNetworkName(const QString &name) { + QMutexLocker locker(&mutex); + QMapIterator<QString, QMap<QString,QString> > i(userProfiles); while (i.hasNext()) { i.next(); @@ -372,6 +376,8 @@ QString QScanThread::getSsidFromNetworkName(const QString &name) QString QScanThread::getNetworkNameFromSsid(const QString &ssid) { + QMutexLocker locker(&mutex); + QMapIterator<QString, QMap<QString,QString> > i(userProfiles); while (i.hasNext()) { i.next(); |