diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-03-11 15:17:16 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-13 16:16:21 (GMT) |
commit | b5975e20c3760adc3032e87c1fb68253bbdbfea9 (patch) | |
tree | a13bae0e8b1b1b53d889b92db31d005b900d90f6 /src/plugins | |
parent | 0991c6d465c0563e5a5e8a09a7a14485d294a3f7 (diff) | |
download | Qt-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.mm | 2 | ||||
-rw-r--r-- | src/plugins/bearer/corewlan/qcorewlanengine_10_6.mm | 2 |
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]; } |