Move function to pimcomm directly

wilder-work
Montel Laurent 11 years ago
parent d0fa79ee30
commit a34c8cf176
  1. 5
      editor/kmcomposewin.cpp

@ -62,7 +62,7 @@
#include "followupreminder/followupreminderselectdatedialog.h"
#include "followupreminder/followupremindercreatejob.h"
#include "agents/followupreminderagent/followupreminderutil.h"
#include "pimcommon/util/vcardutil.h"
#include "libkdepim/progresswidget/statusbarprogresswidget.h"
#include "libkdepim/progresswidget/progressstatusbarwidget.h"
@ -2333,7 +2333,8 @@ void KMComposeWin::slotFetchJob(KJob*job)
attachmentName = contact.realName() + QLatin1String( ".vcf" );
//Workaround about broken kaddressbook fields.
QByteArray data = item.payloadData();
MessageComposer::Util::adaptVcard(data);
PimCommon::VCardUtil vcardUtil;
vcardUtil.adaptVcard(data);
addAttachment( attachmentName, KMime::Headers::CEbase64, QString(), data, "text/x-vcard" );
} else if ( item.hasPayload<KABC::ContactGroup>() ) {
const KABC::ContactGroup group = item.payload<KABC::ContactGroup>();

Loading…
Cancel
Save