summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/bearer/corewlan/qcorewlanengine.mm6
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();