diff --git a/core/backends/lan/lanlinkprovider.cpp b/core/backends/lan/lanlinkprovider.cpp index 84f501333..657709cd8 100644 --- a/core/backends/lan/lanlinkprovider.cpp +++ b/core/backends/lan/lanlinkprovider.cpp @@ -75,7 +75,9 @@ void LanLinkProvider::onNetworkConfigurationChanged(const QNetworkConfiguration if (m_lastConfig != config && config.state() == QNetworkConfiguration::Active) { m_lastConfig = config; onNetworkChange(); +#ifdef KDECONNECT_MDNS m_mdnsDiscovery.onNetworkChange(); +#endif } }