Commit 3701dd6e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix Bug 390900 - Import vcf from email does not work

FIXED-IN: 5.11.3
BUG: 390900
parent d1d74a86
......@@ -163,8 +163,12 @@ static KMime::Content *partNodeFromXKMailUrl(const QUrl &url, ViewerPrivate *w,
QVector<const Interface::BodyPartURLHandler *> BodyPartURLHandlerManager::handlersForPart(KMime::Content *node) const
{
if (auto ct = node->contentType(false)) {
const auto mimeType = ct->mimeType();
auto mimeType = ct->mimeType();
if (!mimeType.isEmpty()) {
// Bug 390900
if (mimeType == "text/x-vcard") {
mimeType = "text/vcard";
}
return mHandlers.value(mimeType);
}
}
......
Supports Markdown
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