diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-26 22:30:54 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-26 22:30:54 +0200 |
commit | f34336d87567e376d856f742880acdb5fb307b81 (patch) | |
tree | 635ca72e82634b02631a94dbdf395b93c8e7d07c /framework/src/domain/mime/mimetreeparser/multipartalternative.cpp | |
parent | 77b5d028b30bafc579d7ea6ccb5955a40345da8e (diff) | |
download | kube-f34336d87567e376d856f742880acdb5fb307b81.tar.gz kube-f34336d87567e376d856f742880acdb5fb307b81.zip |
Remove showOnlyOneMimepart from the public interface.
That makes it much more obvious where we actually rely on it.
Diffstat (limited to 'framework/src/domain/mime/mimetreeparser/multipartalternative.cpp')
-rw-r--r-- | framework/src/domain/mime/mimetreeparser/multipartalternative.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/src/domain/mime/mimetreeparser/multipartalternative.cpp b/framework/src/domain/mime/mimetreeparser/multipartalternative.cpp index 9b7954b5..d0657edb 100644 --- a/framework/src/domain/mime/mimetreeparser/multipartalternative.cpp +++ b/framework/src/domain/mime/mimetreeparser/multipartalternative.cpp | |||
@@ -51,7 +51,7 @@ MessagePart::Ptr MultiPartAlternativeBodyPartFormatter::process(Interface::BodyP | |||
51 | auto preferredMode = MimeTreeParser::Util::Html; | 51 | auto preferredMode = MimeTreeParser::Util::Html; |
52 | AlternativeMessagePart::Ptr mp(new AlternativeMessagePart(part.objectTreeParser(), node)); | 52 | AlternativeMessagePart::Ptr mp(new AlternativeMessagePart(part.objectTreeParser(), node)); |
53 | if (mp->mChildNodes.isEmpty()) { | 53 | if (mp->mChildNodes.isEmpty()) { |
54 | return MimeMessagePart::Ptr(new MimeMessagePart(part.objectTreeParser(), node->contents().at(0), false)); | 54 | return MimeMessagePart::Ptr(new MimeMessagePart(part.objectTreeParser(), node->contents().at(0))); |
55 | } | 55 | } |
56 | 56 | ||
57 | KMime::Content *dataIcal = mp->mChildNodes.contains(Util::MultipartIcal) ? mp->mChildNodes[Util::MultipartIcal] : nullptr; | 57 | KMime::Content *dataIcal = mp->mChildNodes.contains(Util::MultipartIcal) ? mp->mChildNodes[Util::MultipartIcal] : nullptr; |