Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 23564e78 authored by Volker Krause's avatar Volker Krause

Adapt to messagelib API changes

parent 0010ccbe
......@@ -78,11 +78,10 @@ BodyPartFormatter::Result ApplicationGnuPGWKSFormatter::format(BodyPart *part, M
}
if (part->content()->contentType(false) && part->content()->contentType()->isMimeType("multipart/mixed")) {
const auto registry = part->source()->bodyPartFormatterFactory()->subtypeRegistry("multipart");
const auto mixed = registry.find("mixed");
Q_ASSERT(mixed != registry.end()); // there *must* be a multipart/mixed handler
const auto formatters = part->source()->bodyPartFormatterFactory()->formattersForType("multipart", "mixed");
Q_ASSERT(!formatters.isEmpty()); // there *must* be a multipart/mixed handler
return mixed->second->format(part, writer);
return formatters.at(0)->format(part, writer);
}
const auto content = part->content()->decodedContent();
......
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