Introduce a notification type and add extra notifications for KNotify
[quassel.git] / src / qtui / taskbarnotificationbackend.cpp
index 9fda55b..9606012 100644 (file)
@@ -38,8 +38,7 @@ TaskbarNotificationBackend::TaskbarNotificationBackend(QObject *parent)
 }
 
 void TaskbarNotificationBackend::notify(const Notification &notification) {
-  Q_UNUSED(notification)
-  if(_enabled) {
+  if(_enabled && (notification.type == Highlight || notification.type == PrivMsg)) {
     QApplication::alert(QtUi::mainWindow(), _timeout);
   }
 }