summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/notificationmonitor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/notificationmonitor.cpp b/src/notificationmonitor.cpp
index ef64ea1..2001b25 100644
--- a/src/notificationmonitor.cpp
+++ b/src/notificationmonitor.cpp
@@ -58,6 +58,11 @@ uint NotificationMonitor::Notify(const QString &app_name, uint replaces_id, cons
int count = hints.value("x-nemo-item-count").toInt();
QDateTime dateTime = hints.value("x-nemo-timestamp").toDateTime();
+ if (summary.isEmpty() && body.isEmpty()) {
+ // Avoid sending empty notifications to watch.
+ return 0;
+ }
+
emit incomingNotification(app_name, icon, summary, count, body, dateTime);
return 0;