X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fphononnotificationbackend.cpp;h=8bd7020d4f150fea5b057fcb8a8bf674cc4c1b51;hb=e583f46bbff3e4c73716b30b6a6d08adb6e44915;hp=bcc7c76d964605a2be30c13d33de9c34607e9409;hpb=4c80eeb2d07b5ca75fd399b51c939961fdff1670;p=quassel.git diff --git a/src/qtui/phononnotificationbackend.cpp b/src/qtui/phononnotificationbackend.cpp index bcc7c76d..8bd7020d 100644 --- a/src/qtui/phononnotificationbackend.cpp +++ b/src/qtui/phononnotificationbackend.cpp @@ -20,8 +20,8 @@ #include -#include -#include +#include +#include #include "phononnotificationbackend.h" @@ -54,7 +54,7 @@ PhononNotificationBackend::~PhononNotificationBackend() void PhononNotificationBackend::notify(const Notification ¬ification) { if (_enabled && (notification.type == Highlight || notification.type == PrivMsg)) { - if (_audioAvailable) { + if (_audioAvailable && _media) { _media->stop(); _media->play(); }