Commit 3d48c6a9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't show "Attachment:" when there is a mail embedded

parent c17d9c7f
......@@ -353,7 +353,7 @@ QString GrantleeHeaderFormatter::format(const QString &absolutePath, const Grant
headerObject.insert(QStringLiteral("readOnlyMessage"), style->readOnlyMessage());
const QString attachmentHtml = style->attachmentHtml();
const bool messageHasAttachment = KMime::hasAttachment(message);// || !attachmentHtml.isEmpty();
const bool messageHasAttachment = KMime::hasAttachment(message) && !attachmentHtml.isEmpty();
headerObject.insert(QStringLiteral("hasAttachment"), messageHasAttachment);
headerObject.insert(QStringLiteral("attachmentHtml"), attachmentHtml);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment