diff --git a/plugins/connectivity-report/connectivity_reportplugin.cpp b/plugins/connectivity-report/connectivity_reportplugin.cpp index 8d6da36b8..5ed437044 100644 --- a/plugins/connectivity-report/connectivity_reportplugin.cpp +++ b/plugins/connectivity-report/connectivity_reportplugin.cpp @@ -43,10 +43,16 @@ bool ConnectivityReportPlugin::receivePacket(const NetworkPacket& np) auto subscriptions = np.get(QStringLiteral("signalStrengths"), QVariantMap()); auto networkInfo = subscriptions.first().toMap(); + const auto oldCellularNetworkType = m_cellularNetworkType; + const auto oldNetworkStrength = m_cellularNetworkStrength; + m_cellularNetworkType = networkInfo.value(QStringLiteral("networkType")).toString(); m_cellularNetworkStrength = networkInfo.value(QStringLiteral("signalStrength")).toInt(); - Q_EMIT refreshed(m_cellularNetworkType, m_cellularNetworkStrength); + if (oldCellularNetworkType != m_cellularNetworkType || + oldNetworkStrength != m_cellularNetworkStrength) { + Q_EMIT refreshed(m_cellularNetworkType, m_cellularNetworkStrength); + } } return true;