diff options
author | Javier <dev.git@javispedro.com> | 2015-03-31 17:33:29 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-03-31 17:33:29 +0200 |
commit | ebc496d4e8038834e68ef2069bc53a0524da2008 (patch) | |
tree | 07a5b4548a8891bbcac8e9ff1eed99110cc2120f /saltoqd/notificationmanager.cpp | |
parent | a8ba1dbd9a1d7955d4e6e66f1e8c2d874873ca01 (diff) | |
download | saltoq-ebc496d4e8038834e68ef2069bc53a0524da2008.tar.gz saltoq-ebc496d4e8038834e68ef2069bc53a0524da2008.zip |
implement the voicecallmanager (dialer, etc.)
Diffstat (limited to 'saltoqd/notificationmanager.cpp')
-rw-r--r-- | saltoqd/notificationmanager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/saltoqd/notificationmanager.cpp b/saltoqd/notificationmanager.cpp index c5a4e88..30414ce 100644 --- a/saltoqd/notificationmanager.cpp +++ b/saltoqd/notificationmanager.cpp @@ -15,6 +15,12 @@ NotificationManager::NotificationManager(CardManager *card, ToqManager *toq) : void NotificationManager::handleNotification(MonitoredNotification *n) { uint notificationId = n->id(); + + if (n->sender().isEmpty() || (n->body().isEmpty() && n->summary().isEmpty())) { + // Never create a card for an empty notification + return; + } + Card *card = new Card(QString::number(qint64(notificationId))); card->setHeader(n->sender()); |