https://bugs.kde.org/show_bug.cgi?id=473278

--- Comment #8 from Eric Armbruster <er...@armbruster-online.de> ---
Haven't gotten much time at hand, the problem is we need to check whether
applet is nullptr

diff --git a/applets/systemtray/systemtraymodel.cpp
b/applets/systemtray/systemtraymodel.cpp
index da2dcf8d2..9d1d9b5c3 100644
--- a/applets/systemtray/systemtraymodel.cpp
+++ b/applets/systemtray/systemtraymodel.cpp
@@ -119,7 +119,7 @@ QVariant PlasmoidModel::data(const QModelIndex &index, int
role) const
             return pluginMetaData.name();
         }
         case Qt::DecorationRole: {
-            QIcon icon = QIcon::fromTheme(pluginMetaData.iconName());
+            QIcon icon = QIcon::fromTheme(applet ? applet->icon() : "",
QIcon::fromTheme(pluginMetaData.iconName()));
             return icon.isNull() ? QVariant() : icon;
         }
         default:


The result seems to work somewhat, e.g. shows the plasma-pa applet with the
currently active status but does not work for notifications and network. I hope
it is okay if I let you figure that out as you are probably know a whole lot
more about where the icons stem from.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to