Commit f98796f9 authored by David Rosca's avatar David Rosca
Browse files

Monolithic: Set Passive state when Bluetooth is offline

BUG: 332014
parent b750a9cb
......@@ -220,6 +220,8 @@ void Monolithic::setupDevice(Device *device)
void Monolithic::onlineMode()
{
setStatus(Active);
QList<Adapter*> adapters = Manager::self()->adapters();
Q_FOREACH(Adapter *adapter, adapters) {
connect(adapter, SIGNAL(deviceFound(Device*)), SLOT(deviceCreated(Device*)));
......@@ -351,6 +353,7 @@ void Monolithic::deviceCreated(Device *device)
void Monolithic::offlineMode()
{
setStatus(Passive);
setTooltipTitleStatus(false);
KMenu *const menu = contextMenu();
......
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