summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Andreas <github@smurfy.de>2014-08-12 23:21:50 +0200
committerPhilipp Andreas <github@smurfy.de>2014-08-12 23:21:50 +0200
commit2f3196ed2cac357edaad50ee98ad96f54845cb71 (patch)
treef1c9225a309fb099a3ac25b328e93e1d45f36814
parent6b85e05470012c118710794fbeccb2ac31ec328e (diff)
Fix for issue #16
-rw-r--r--daemon/notificationmanager.cpp9
1 files changed, 8 insertions, 1 deletions
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") {