Commit f5bdca9f authored by Lorn Potter's avatar Lorn Potter

[connectionagent] fix crash accessing NULL object

parent 48320a70
......@@ -225,10 +225,13 @@ void QConnectionAgent::serviceErrorChanged(const QString &error)
void QConnectionAgent::serviceStateChanged(const QString &state)
{
NetworkService *service = static_cast<NetworkService *>(sender());
if (!service)
return;
qDebug() << state << service->name() << service->strength();
qDebug() << "currentNetworkState" << currentNetworkState;
if (!service->favorite() || !netman->getTechnology(service->type())->powered()) {
if (!service->favorite() || !netman->getTechnology(service->type())
|| !netman->getTechnology(service->type())->powered()) {
qDebug() << "not fav or not powered";
return;
}
......
Markdown is supported
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