summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-09-13 14:18:58 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-09-13 14:19:59 +0200
commitde37802d627aec126279a9be8154dbdef321a762 (patch)
tree3e5b4c3dd8d1b2b76c140a2c0d56eb44a45a9b3c /kde-plasma/plasma-nm/files
parentsys-cluster/kubelet: Version bump to 1.11.3 (diff)
downloadgentoo-de37802d627aec126279a9be8154dbdef321a762.tar.gz
gentoo-de37802d627aec126279a9be8154dbdef321a762.tar.bz2
gentoo-de37802d627aec126279a9be8154dbdef321a762.zip
kde-plasma/plasma-nm: Change icon on NM connectivity change
Package-Manager: Portage-2.3.48, Repoman-2.3.10
Diffstat (limited to 'kde-plasma/plasma-nm/files')
-rw-r--r--kde-plasma/plasma-nm/files/plasma-nm-5.13.5-iconchange.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/kde-plasma/plasma-nm/files/plasma-nm-5.13.5-iconchange.patch b/kde-plasma/plasma-nm/files/plasma-nm-5.13.5-iconchange.patch
new file mode 100644
index 000000000000..f44bbc34be9d
--- /dev/null
+++ b/kde-plasma/plasma-nm/files/plasma-nm-5.13.5-iconchange.patch
@@ -0,0 +1,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