fixed focus when switching to plain topic view
[quassel.git] / src / qtui / phononnotificationbackend.cpp
index 27d7afe..7006f5e 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
-*   Copyright (C) 2005-08 by the Quassel Project                          *
+*   Copyright (C) 2005-09 by the Quassel Project                          *
 *   devel@quassel-irc.org                                                 *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
@@ -47,8 +47,8 @@ PhononNotificationBackend::~PhononNotificationBackend() {
 }
 
 void PhononNotificationBackend::notify(const Notification &notification) {
-  Q_UNUSED(notification)
-  if(_enabled && _media) {
+  if(_enabled && _media && (notification.type == Highlight || notification.type == PrivMsg)) {
+    _media->stop();
     _media->play();
   }
 }