Don't quit when the last window is closed (could still be running in systray...)
[quassel.git] / src / qtui / systraynotificationbackend.cpp
index 1c8b572..219a981 100644 (file)
@@ -58,7 +58,7 @@ void SystrayNotificationBackend::notify(const Notification &notification) {
   if(_showBubble) {
     showBubble();
   }
-  if(_animate && _notifications.count() == 1) {
+  if(_animate) {
     startAnimation();
   }
 }
@@ -86,8 +86,10 @@ void SystrayNotificationBackend::showBubble() {
 }
 
 void SystrayNotificationBackend::closeBubble() {
-  // there really seems to be no decent way to close the bubble...
+  // there really seems to be no sane way to close the bubble... :(
+#ifdef Q_WS_X11
   QtUi::mainWindow()->systemTrayIcon()->showMessage("", "", QSystemTrayIcon::NoIcon, 1);
+#endif
 }
 
 void SystrayNotificationBackend::showBubbleChanged(const QVariant &v) {