summaryrefslogtreecommitdiff
path: root/saltoqd
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2016-03-02 23:27:35 +0100
committerJavier <dev.git@javispedro.com>2016-03-02 23:27:35 +0100
commite9f858da9beb3acac142b9abe7564ee77a0f729e (patch)
tree9be9b4536047a66a540622a0e3cd5645f478a81c /saltoqd
parent89d87eba7c792cae62878f8054e4b271c08fe378 (diff)
downloadsaltoq-master.tar.gz
saltoq-master.zip
ignore transient notificationsHEADmaster
Diffstat (limited to 'saltoqd')
-rw-r--r--saltoqd/notificationmanager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/saltoqd/notificationmanager.cpp b/saltoqd/notificationmanager.cpp
index 22e8a35..03f6cc5 100644
--- a/saltoqd/notificationmanager.cpp
+++ b/saltoqd/notificationmanager.cpp
@@ -32,6 +32,11 @@ void NotificationManager::handleNotification(Notification *n)
return;
}
+ if (n->transient()) {
+ qDebug() << "Ignoring transient notification" << notificationId;
+ return;
+ }
+
Card *card = new Card(QString::number(qint64(notificationId)));
card->setHeader(n->sender());