summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-03-11 15:17:16 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-13 16:16:21 (GMT)
commitb5975e20c3760adc3032e87c1fb68253bbdbfea9 (patch)
treea13bae0e8b1b1b53d889b92db31d005b900d90f6 /src/plugins
parent0991c6d465c0563e5a5e8a09a7a14485d294a3f7 (diff)
downloadQt-b5975e20c3760adc3032e87c1fb68253bbdbfea9.zip
Qt-b5975e20c3760adc3032e87c1fb68253bbdbfea9.tar.gz
Qt-b5975e20c3760adc3032e87c1fb68253bbdbfea9.tar.bz2
Fix Mac Bearer when machine has no wifi
This manifested itself for some continuous integration machine, all regular macs have wireless. In case there is no wifi, we would never emit updateCompleted(). Change-Id: I81dce65cdbb0091944c4e79fdb5f2b7f5f70de88 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Simo Fält <simo.falt@digia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/bearer/corewlan/qcorewlanengine.mm2
-rw-r--r--src/plugins/bearer/corewlan/qcorewlanengine_10_6.mm2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/bearer/corewlan/qcorewlanengine.mm b/src/plugins/bearer/corewlan/qcorewlanengine.mm
index d44794e..f243e19 100644
--- a/src/plugins/bearer/corewlan/qcorewlanengine.mm
+++ b/src/plugins/bearer/corewlan/qcorewlanengine.mm
@@ -573,6 +573,8 @@ void QCoreWlanEngine::doRequestUpdate()
scanThread->start();
}
locker.unlock();
+ if ([wifiInterfaces count] == 0)
+ networksChanged();
[autoreleasepool release];
}
diff --git a/src/plugins/bearer/corewlan/qcorewlanengine_10_6.mm b/src/plugins/bearer/corewlan/qcorewlanengine_10_6.mm
index 79c2bb9..96a7e2e 100644
--- a/src/plugins/bearer/corewlan/qcorewlanengine_10_6.mm
+++ b/src/plugins/bearer/corewlan/qcorewlanengine_10_6.mm
@@ -631,6 +631,8 @@ void QCoreWlanEngine::doRequestUpdate()
scanThread->start();
}
locker.unlock();
+ if ([wifiInterfaces count] == 0)
+ networksChanged();
[autoreleasepool release];
}