Commit ae699edd authored by Sandro Knauß's avatar Sandro Knauß

AttachmentStrategy tells, that it shows toplevel Text Inline.

parent 663ae78f
......@@ -96,9 +96,10 @@ public:
Display defaultDisplay(KMime::Content *node) const override
{
if (node->contentType()->isText()
&& node->contentDisposition()->filename().trimmed().isEmpty()
&& node->contentType()->name().trimmed().isEmpty()) {
if (node->contentType()->isText() &&
(!node->parent()
|| (node->contentDisposition()->filename().trimmed().isEmpty()
&& node->contentType()->name().trimmed().isEmpty()))) {
// text/* w/o filename parameter:
return Inline;
}
......
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