summaryrefslogtreecommitdiffstats
path: root/network/wifinetworkmodel.cpp
diff options
context:
space:
mode:
authorMatt Porter <mporter@konsulko.com>2018-07-30 21:10:29 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2018-07-30 21:10:29 +0000
commitee58ffc1da71d296fdae869dbaaa74a1c4a6c664 (patch)
treec67348444246644e98a56076337515059560f6a1 /network/wifinetworkmodel.cpp
parent3f7c96d135e64e22075b640e9ee301e444cd1582 (diff)
parent0c4d8bf4e0af08563c907148216ffdb485dd1922 (diff)
Diffstat (limited to 'network/wifinetworkmodel.cpp')
-rw-r--r--network/wifinetworkmodel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/network/wifinetworkmodel.cpp b/network/wifinetworkmodel.cpp
index 8a83919..3cfd7dd 100644
--- a/network/wifinetworkmodel.cpp
+++ b/network/wifinetworkmodel.cpp
@@ -163,6 +163,9 @@ void WifiNetworkModel::updateProperties(QString service, QJsonObject properties)
if (properties.contains("strength")) {
network->setStrength(properties.value("strength").toInt());
emit dataChanged(indexOf(network), indexOf(network));
+ if ((network->state() == "ready") ||
+ (network->state() == "online"))
+ emit strengthChanged(network->strength());
}
}
}