Fix problems with phonon media playback
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 7 May 2009 19:52:11 +0000 (21:52 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 7 May 2009 19:52:11 +0000 (21:52 +0200)
Suggested by Squider, thanks! Fixes #679.

src/qtui/phononnotificationbackend.cpp

index 3f029bf..7006f5e 100644 (file)
@@ -48,6 +48,7 @@ PhononNotificationBackend::~PhononNotificationBackend() {
 
 void PhononNotificationBackend::notify(const Notification &notification) {
   if(_enabled && _media && (notification.type == Highlight || notification.type == PrivMsg)) {
+    _media->stop();
     _media->play();
   }
 }