Skip to content

Commit

Permalink
[connectionagent] do not try to connect if already connected when
Browse files Browse the repository at this point in the history
autoconnect property changes
  • Loading branch information
Lorn Potter committed Jun 6, 2014
1 parent 9e69c51 commit 7944074
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions connd/qconnectionagent.cpp
Expand Up @@ -628,6 +628,7 @@ void QConnectionAgent::serviceAutoconnectChanged(bool on)
servicesMap.value(selectedServicePath)->requestConnect();
}
} else {
if (!isStateOnline(service->state())) {
if (service->type() == "cellular") {
QVector<NetworkService*> cellServices = netman->getServices("cellular");
Q_FOREACH (NetworkService *cService, cellServices) {
Expand All @@ -644,6 +645,7 @@ void QConnectionAgent::serviceAutoconnectChanged(bool on)
}
}
}
}

bool QConnectionAgent::isBestService(NetworkService *service)
{
Expand Down

0 comments on commit 7944074

Please sign in to comment.