diff options
| author | Philipp Andreas <github@smurfy.de> | 2014-07-11 22:27:49 +0200 |
|---|---|---|
| committer | Philipp Andreas <github@smurfy.de> | 2014-07-11 22:27:49 +0200 |
| commit | 8405d4e2318291b0337812e5476a9d1e44ec9152 (patch) | |
| tree | eb1a17d0b041e5f50d3121222a02a2f2b4e209fa /daemon/notificationmanager.cpp | |
| parent | 64aec8ec9808de66dfc185dfb82fc9d6cd1f004c (diff) | |
Prioritize data not the subject. If subject is empty it does not get displayed.
Also the data value get shown in the notification overview screen, while the subject is not.
Diffstat (limited to 'daemon/notificationmanager.cpp')
| -rw-r--r-- | daemon/notificationmanager.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/daemon/notificationmanager.cpp b/daemon/notificationmanager.cpp index f6b745a..8a2129e 100644 --- a/daemon/notificationmanager.cpp +++ b/daemon/notificationmanager.cpp @@ -97,8 +97,8 @@ void NotificationManager::Notify(const QString &app_name, uint replaces_id, cons if (app_name == "messageserver5") { emit this->emailNotify(hints.value("x-nemo-preview-summary", detectCleanAppname(app_name)).toString(), - "", - hints.value("x-nemo-preview-body", "").toString() + hints.value("x-nemo-preview-body", "").toString(), + "" ); } else if (app_name == "commhistoryd") { if (summary == "" && body == "") { @@ -115,9 +115,9 @@ void NotificationManager::Notify(const QString &app_name, uint replaces_id, cons if (subject.isEmpty()) { subject = hints.value("x-nemo-preview-body", "").toString(); } - if (subject.isEmpty() && !data.isEmpty()) { - subject = data; - data = ""; + if (data.isEmpty() && !subject.isEmpty()) { + data = subject; + subject = ""; } emit this->emailNotify(detectCleanAppname(app_name), data, subject); } |
