summaryrefslogtreecommitdiffstats
path: root/network/network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'network/network.cpp')
-rw-r--r--network/network.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/network/network.cpp b/network/network.cpp
index 679f374..4ce701f 100644
--- a/network/network.cpp
+++ b/network/network.cpp
@@ -200,9 +200,9 @@ void Network::parseTechnologies(QJsonArray technologies)
QJsonObject properties = technology.value("properties").toObject();
QString type = properties.value("type").toString();
- AdapterIf* adapter = findAdapter(type);
- if (adapter)
- adapter->updateStatus(properties);
+ AdapterIf* adapter = findAdapter(type);
+ if (adapter)
+ adapter->updateStatus(properties);
}
}
@@ -233,7 +233,6 @@ void Network::processEvent(NetworkMessage *nmsg)
for (auto value : services) {
QJsonObject service = value.toObject();
QString action = service.value("action").toString();
- QString id = service.value("service").toString();
if (action == "changed") {
addService(service);
} else if (action == "removed") {