Commit 22b25bc5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Minor optimization

parent db5b23ae
......@@ -1872,7 +1872,8 @@ QString ViewerPrivate::renderAttachments(KMime::Content *node, const QColor &bgC
margin = QStringLiteral("padding:2px; margin:2px; ");
}
QString align = headerStylePlugin()->alignment();
const bool result = (node->contentType()->mediaType().toLower() == "message" || node->contentType()->mediaType().toLower() == "multipart" || node == mMessage.data());
const QByteArray mediaTypeLower = node->contentType()->mediaType().toLower();
const bool result = (mediaTypeLower == "message" || mediaTypeLower == "multipart" || node == mMessage.data());
if (result)
html += QStringLiteral("<div id=\"attachmentid\" style=\"background:%1; %2"
"vertical-align:middle; float:%3; %4\">").arg(bgColor.name()).arg(margin).arg(align).arg(visibility);
......
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