aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-07-06 13:32:54 +0200
committerMontel Laurent <[email protected]>2017-07-06 13:32:54 +0200
commit6d2f03f5a532a76af2008dd765003ea8ebb0b602 (patch)
tree4e0271ab1ff3da04df2de55aa65c45cac9074adc
parentbe38888493a8b35611eddc8e3732c8c19ac43eb8 (diff)
Make sure that it's not empty
-rw-r--r--src/incidenceformatter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/incidenceformatter.cpp b/src/incidenceformatter.cpp
index acc1d9c..97a2008 100644
--- a/src/incidenceformatter.cpp
+++ b/src/incidenceformatter.cpp
@@ -2897,13 +2897,13 @@ QString IncidenceFormatter::toolTipStr(const QString &sourceName, const Incidenc
static QString mailBodyIncidence(const Incidence::Ptr &incidence)
{
QString body;
- if (!incidence->summary().isEmpty()) {
+ if (!incidence->summary().trimmed().isEmpty()) {
body += i18n("Summary: %1\n", incidence->richSummary());
}
if (!incidence->organizer()->isEmpty()) {
body += i18n("Organizer: %1\n", incidence->organizer()->fullName());
}
- if (!incidence->location().isEmpty()) {
+ if (!incidence->location().trimmed().isEmpty()) {
body += i18n("Location: %1\n", incidence->richLocation());
}
return body;