Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit b174f200 authored by Laurent Montel's avatar Laurent Montel 😁

Create temporary file

parent 910f087e
......@@ -72,6 +72,7 @@ bool SendVcardsJob::start()
const QString contactRealName(contact.realName());
const QString attachmentName = (contactRealName.isEmpty() ? QLatin1String("vcard") : contactRealName ) + QLatin1String( ".vcf" );
createTemporaryFile(data, attachmentName);
} else if (item.hasPayload<KABC::ContactGroup>()) {
const KABC::ContactGroup group = item.payload<KABC::ContactGroup>();
......@@ -117,8 +118,8 @@ void SendVcardsJob::slotExpandGroupResult(KJob* job)
KABC::VCardConverter converter;
const QByteArray groupData = converter.exportVCards(expandJob->contacts(), KABC::VCardConverter::v3_0);
createTemporaryFile(groupData, attachmentName);
if (mExpandGroupJobCount == 0) {
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