Commit 014cc0b8 authored by Àlex Fiestas's avatar Àlex Fiestas
Browse files

Check if there is an usable adapter before going to onlineMode

An adapter can be added but it might no be usable (not powered) so we
have to be certain that there is an usableAdapter before going into

In the future We should connect only to usableAdapterChanged to make
the code waay simpler, but since we are close to release let's not
modify too much code.

CCBUG: 314356
parent d8cc67eb
......@@ -62,7 +62,7 @@ void Monolithic::noAdapters(Adapter* adapter)
void Monolithic::adapterAdded()
if (status() != KStatusNotifierItem::Active) {
if (status() != KStatusNotifierItem::Active && Manager::self()->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