diff --git a/editor/kmcomposewin.cpp b/editor/kmcomposewin.cpp index 916df7a0d..037e17cbf 100644 --- a/editor/kmcomposewin.cpp +++ b/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() ) { const KABC::ContactGroup group = item.payload();