blob: f44bbc34be9d1c57199191b86628128e015a199f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
From a71ca963f798ca405878305b5433550e6c267d87 Mon Sep 17 00:00:00 2001
From: Jan Grulich <jgrulich@redhat.com>
Date: Thu, 13 Sep 2018 13:24:51 +0200
Subject: Make sure we change icon on NM connectivity change
---
libs/declarative/connectionicon.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libs/declarative/connectionicon.cpp b/libs/declarative/connectionicon.cpp
index b792f92..d4ff30a 100644
--- a/libs/declarative/connectionicon.cpp
+++ b/libs/declarative/connectionicon.cpp
@@ -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)
--
cgit v0.11.2
|