Only broadcast when the newly reported configuration is actually active
This commit is contained in:
parent
97d97ffa1b
commit
69d899ed48
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue