Only broadcast when the newly reported configuration is actually active

This commit is contained in:
Aleix Pol 2015-12-06 01:19:20 +01:00
parent 97d97ffa1b
commit 69d899ed48

View file

@ -61,7 +61,7 @@ LanLinkProvider::LanLinkProvider(bool testMode)
void LanLinkProvider::onNetworkConfigurationChanged(const QNetworkConfiguration &config)
{
if (m_lastConfig != config) {
if (m_lastConfig != config && config.state() == QNetworkConfiguration::Active) {
m_lastConfig = config;
onNetworkChange();
}