X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fphononnotificationbackend.cpp;h=7006f5e6358a4887702553992a513f0b26c68012;hp=27d7afea35cd29d06b89ab0a033a882379a47d86;hb=8e9f08aa0f4e663473b634511b1bcc40145e9ba9;hpb=5d627d362db7f8e1241fcb0c7164679e7847fdfa diff --git a/src/qtui/phononnotificationbackend.cpp b/src/qtui/phononnotificationbackend.cpp index 27d7afea..7006f5e6 100644 --- a/src/qtui/phononnotificationbackend.cpp +++ b/src/qtui/phononnotificationbackend.cpp @@ -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 ¬ification) { - Q_UNUSED(notification) - if(_enabled && _media) { + if(_enabled && _media && (notification.type == Highlight || notification.type == PrivMsg)) { + _media->stop(); _media->play(); } }