diff options
| -rw-r--r-- | daemon/notificationmanager.cpp | 9 |
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") { |
