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