From 2f3196ed2cac357edaad50ee98ad96f54845cb71 Mon Sep 17 00:00:00 2001 From: Philipp Andreas Date: Tue, 12 Aug 2014 23:21:50 +0200 Subject: Fix for issue #16 --- daemon/notificationmanager.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'daemon/notificationmanager.cpp') diff --git a/daemon/notificationmanager.cpp b/daemon/notificationmanager.cpp index 1b888d5..6db2514 100644 --- a/daemon/notificationmanager.cpp +++ b/daemon/notificationmanager.cpp @@ -130,7 +130,14 @@ void NotificationManager::Notify(const QString &app_name, uint replaces_id, cons QString subject = hints.value("x-nemo-preview-summary", "").toString(); QString data = hints.value("x-nemo-preview-body", "").toString(); - if (!data.isEmpty() && !subject.isEmpty()) { + + //Prioritize subject over data + if (subject.isEmpty() && !data.isEmpty()) { + subject = data; + data = ""; + } + + if (!subject.isEmpty()) { emit this->emailNotify(subject, data, ""); } } else if (app_name == "commhistoryd") { -- cgit v1.2.3