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 0093ec0f authored by Laurent Montel's avatar Laurent Montel 😁

minor optimization

parent b174f200
......@@ -2356,11 +2356,10 @@ void KMComposeWin::slotExpandGroupResult(KJob *job)
Q_ASSERT( expandJob );
const QString attachmentName = expandJob->property("groupName").toString();
const QByteArray mimeType = "text/x-vcard";
KABC::VCardConverter converter;
const QByteArray groupData = converter.exportVCards(expandJob->contacts(), KABC::VCardConverter::v3_0);
if (!groupData.isEmpty()) {
addAttachment( attachmentName, KMime::Headers::CEbase64, QString(), groupData, mimeType );
addAttachment( attachmentName, KMime::Headers::CEbase64, QString(), groupData, "text/x-vcard" );
}
}
......
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