summaryrefslogtreecommitdiffstats
path: root/network/wifinetworkmodel.cpp
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2019-04-26 03:06:33 +0300
committerraquel medina <raquel.medina@konsulko.com>2019-05-13 14:23:10 +0000
commit1fbfc103a8fba891ee20735e5355045e46ce184c (patch)
tree9c64c99c916dc8bd9f5fb84562043bd2c7b3f22c /network/wifinetworkmodel.cpp
parentfbb1b3bfeefed2e5095265aad121ac741e9ff792 (diff)
network: refactor network class
Refactor network class to prepare for wired connections. - extract Wifi model and flags into new WifiAdapter class - fix wifi networks disappearing for prolonged periods after disconnecting from a wifi service (this issue is intermittent, depends on the wifi signal variability) Bug-AGL: SPEC-2293 Change-Id: I75f3076d094daa9c8d04e05fe2944df98f5cfb81 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
Diffstat (limited to 'network/wifinetworkmodel.cpp')
-rw-r--r--network/wifinetworkmodel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/network/wifinetworkmodel.cpp b/network/wifinetworkmodel.cpp
index 3837278..2691d6e 100644
--- a/network/wifinetworkmodel.cpp
+++ b/network/wifinetworkmodel.cpp
@@ -164,9 +164,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());
+ if ((network->state() == "ready") ||
+ (network->state() == "online"))
+ emit strengthChanged(network->strength());
}
}
}