summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kde-plasma/plasma-nm/files/plasma-nm-5.13.5-iconchange.patch')
-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 00000000000..f44bbc34be9
--- /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