Commit 46edbaa5 authored by Sandro Knauß's avatar Sandro Knauß

there is no need for a internaleRootFlag

parent 6f7ede74
...@@ -58,7 +58,6 @@ MessagePart::MessagePart(ObjectTreeParser *otp, ...@@ -58,7 +58,6 @@ MessagePart::MessagePart(ObjectTreeParser *otp,
, mSubOtp(Q_NULLPTR) , mSubOtp(Q_NULLPTR)
, mAttachmentNode(Q_NULLPTR) , mAttachmentNode(Q_NULLPTR)
, mRoot(false) , mRoot(false)
, mIsInternalRoot(false)
{ {
} }
...@@ -138,7 +137,7 @@ void MessagePart::parseInternal(KMime::Content *node, bool onlyOneMimePart) ...@@ -138,7 +137,7 @@ void MessagePart::parseInternal(KMime::Content *node, bool onlyOneMimePart)
mSubOtp = new ObjectTreeParser(mOtp, onlyOneMimePart); mSubOtp = new ObjectTreeParser(mOtp, onlyOneMimePart);
mSubOtp->setAllowAsync(mOtp->allowAsync()); mSubOtp->setAllowAsync(mOtp->allowAsync());
auto subMessagePart = mSubOtp->parseObjectTreeInternal(node); auto subMessagePart = mSubOtp->parseObjectTreeInternal(node);
mIsInternalRoot = subMessagePart->isRoot(); mRoot = subMessagePart->isRoot();
foreach (auto part, subMessagePart->subParts()) { foreach (auto part, subMessagePart->subParts()) {
appendSubPart(part); appendSubPart(part);
} }
......
...@@ -107,7 +107,6 @@ private: ...@@ -107,7 +107,6 @@ private:
KMime::Content *attachmentNode() const; KMime::Content *attachmentNode() const;
QVector<Interface::MessagePart::Ptr> mBlocks; QVector<Interface::MessagePart::Ptr> mBlocks;
bool mIsInternalRoot;
friend class HtmlRendererPrivate; friend class HtmlRendererPrivate;
}; };
......
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