Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[connectionagent] send connectionState signal on network disconnect. …
…JB#51549
  • Loading branch information
NotKit committed Nov 12, 2020
1 parent e7208f5 commit 9bc2a72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions connd/qconnectionagent.cpp
Expand Up @@ -196,6 +196,10 @@ void QConnectionAgent::serviceStateChanged(const QString &state)
netman->defaultRoute()->requestDisconnect();
}

if (state == "disconnect") {
Q_EMIT connectionState(state, service->type());
}

if (!service->favorite() || !netman->getTechnology(service->type())
|| !netman->getTechnology(service->type())->powered()) {
qDebug() << "not fav or not powered";
Expand Down

0 comments on commit 9bc2a72

Please sign in to comment.