X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fdesktopnotificationbackend.cpp;h=1f633d304a4838dbe2b232ebe3602c96b78fc969;hp=e959f528e72e38f29b2fc431c3333fa0e16ae715;hb=b2de861297e7bb461b37ff041827c89360ecfec6;hpb=7d252c0e8aa2728d9a57130c7aae8923c5321542 diff --git a/src/qtui/desktopnotificationbackend.cpp b/src/qtui/desktopnotificationbackend.cpp index e959f528..1f633d30 100644 --- a/src/qtui/desktopnotificationbackend.cpp +++ b/src/qtui/desktopnotificationbackend.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 * @@ -88,7 +88,7 @@ void DesktopNotificationBackend::useTimeoutChanged(const QVariant &v) { } void DesktopNotificationBackend::notify(const Notification &n) { - if(_enabled) { + if(_enabled && (n.type == Highlight || n.type == PrivMsg)) { QStringList actions; QMap hints; @@ -148,6 +148,7 @@ void DesktopNotificationBackend::desktopNotificationClosed(uint id, uint reason) void DesktopNotificationBackend::desktopNotificationInvoked(uint id, const QString & action) { Q_UNUSED(id); Q_UNUSED(action); + emit activated(); } SettingsPage *DesktopNotificationBackend::createConfigWidget() const {