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: I1c5b0da6e1d73fef2588beb1796207326d430e26
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
This commit is contained in:
Frederik Gladhorn 2014-03-11 16:23:10 +01:00 committed by The Qt Project
parent 2258d8f9d0
commit 263f97f963
2 changed files with 4 additions and 0 deletions

View File

@ -573,6 +573,8 @@ void QCoreWlanEngine::doRequestUpdate()
scanThread->start();
}
locker.unlock();
if ([wifiInterfaces count] == 0)
networksChanged();
[autoreleasepool release];
}

View File

@ -631,6 +631,8 @@ void QCoreWlanEngine::doRequestUpdate()
scanThread->start();
}
locker.unlock();
if ([wifiInterfaces count] == 0)
networksChanged();
[autoreleasepool release];
}