Commit a71ca963 authored by Jan Grulich's avatar Jan Grulich

Make sure we change icon on NM connectivity change

parent 497e8a32
......@@ -82,6 +82,7 @@ ConnectionIcon::ConnectionIcon(QObject* parent)
setStates();
connectivityChanged();
setIcons();
}
ConnectionIcon::~ConnectionIcon()
......@@ -174,8 +175,7 @@ void ConnectionIcon::carrierChanged(bool carrier)
void ConnectionIcon::connectivityChanged()
{
NetworkManager::Connectivity conn = NetworkManager::connectivity();
m_limited = (conn == NetworkManager::Portal || conn == NetworkManager::Limited);
setIcons();
setLimited(conn == NetworkManager::Portal || conn == NetworkManager::Limited);
}
void ConnectionIcon::deviceAdded(const QString& device)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment