qtui: Properly update tray icons
[quassel.git] / src / qtui / statusnotifieritem.cpp
index f3b462b..9f34e7c 100644 (file)
@@ -100,7 +100,7 @@ StatusNotifierItem::StatusNotifierItem(QWidget *parent)
     }
 #endif
 
     }
 #endif
 
-    connect(QtUi::instance(), SIGNAL(iconThemeRefreshed()), this, SLOT(refreshIcons()));
+    connect(this, SIGNAL(iconsChanged()), this, SLOT(refreshIcons()));
     refreshIcons();
 
     // Our own SNI service
     refreshIcons();
 
     // Our own SNI service
@@ -188,6 +188,7 @@ void StatusNotifierItem::onDBusError(const QDBusError &error)
     setMode(Mode::Legacy);
 }
 
     setMode(Mode::Legacy);
 }
 
+
 void StatusNotifierItem::refreshIcons()
 {
 #if QT_VERSION >= 0x050000
 void StatusNotifierItem::refreshIcons()
 {
 #if QT_VERSION >= 0x050000