From 1fbfc103a8fba891ee20735e5355045e46ce184c Mon Sep 17 00:00:00 2001 From: Raquel Medina Date: Fri, 26 Apr 2019 03:06:33 +0300 Subject: 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 --- network/wifinetworkmodel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'network/wifinetworkmodel.cpp') 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()); } } } -- cgit 1.2.3-korg