Fix problems with phonon media playback
[quassel.git] / src / qtui / phononnotificationbackend.cpp
index 27d7afe..2edd429 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  *
@@ -49,6 +49,7 @@ PhononNotificationBackend::~PhononNotificationBackend() {
 void PhononNotificationBackend::notify(const Notification &notification) {
   Q_UNUSED(notification)
   if(_enabled && _media) {
+    _media->stop();
     _media->play();
   }
 }