Commit 8559a0d2 authored by Àlex Fiestas's avatar Àlex Fiestas
Browse files

Emit defaultAdapterChanged and usableAdapterChanged on initialize

After all this is the first time they change, from 0 to *

CCBUG:314356
parent 19792c00
......@@ -102,6 +102,7 @@ void Manager::Private::initialize()
if (!defaultAdapterPath.isEmpty()) {
m_defaultAdapter = new Adapter(defaultAdapterPath, m_q);
m_adaptersHash.insert(defaultAdapterPath, m_defaultAdapter);
emit m_q->defaultAdapterChanged(m_defaultAdapter);
}
}
const QVariantMap properties = m_bluezManagerInterface->GetProperties().value();
......@@ -115,6 +116,8 @@ void Manager::Private::initialize()
m_adaptersHash.insert(path.path(), adapter);
}
}
m_usableAdapter = findUsableAdapter();
emit m_q->usableAdapterChanged(m_usableAdapter);
}
}
......
Supports Markdown
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