Commit daba4737 authored by Alex Blasche's avatar Alex Blasche
Browse files

Force lowenergyscanner to show empty list if we did not find services


Previously the UI was only updated when a new service was discovered
on a device. In the extremely rare event of no services being found
the UI was hanging in the "Searching for services" view.

Change-Id: I245216ac4e373a765dea2e182ab541e8830417d0
Reviewed-by: default avatarTimur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: default avatarAlex Blasche <alexander.blasche@digia.com>
parent b9e6d2a4
No related merge requests found
Showing with 3 additions and 0 deletions
......@@ -206,6 +206,9 @@ void Device::addLowEnergyService(const QBluetoothUuid &serviceUuid)
void Device::serviceScanDone()
{
setUpdate("Service scan done!");
// force UI in case we didn't find anything
if (m_services.isEmpty())
emit servicesUpdated();
}
void Device::connectToService(const QString &uuid)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment