summaryrefslogtreecommitdiffstats
path: root/kmail/vcardviewer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/vcardviewer.cpp')
-rw-r--r--kmail/vcardviewer.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/kmail/vcardviewer.cpp b/kmail/vcardviewer.cpp
index ff4a3b86e..0e34f72cc 100644
--- a/kmail/vcardviewer.cpp
+++ b/kmail/vcardviewer.cpp
@@ -37,7 +37,11 @@ using KABC::Addressee;
#include <tqstring.h>
-KMail::VCardViewer::VCardViewer(TQWidget *parent, const TQString& vCard, const char* name)
+#if defined(KABC_VCARD_ENCODING_FIX)
+KMail::VCardViewer::VCardViewer( TQWidget *parent, const TQByteArray &vCard, const char *name )
+#else
+KMail::VCardViewer::VCardViewer( TQWidget *parent, const TQString &vCard, const char *name )
+#endif
: KDialogBase( parent, name, false, i18n("VCard Viewer"), User1|User2|User3|Close, Close,
true, i18n("&Import"), i18n("&Next Card"), i18n("&Previous Card") )
{
@@ -47,7 +51,11 @@ KMail::VCardViewer::VCardViewer(TQWidget *parent, const TQString& vCard, const c
setMainWidget(mAddresseeView);
VCardConverter vcc;
+#if defined(KABC_VCARD_ENCODING_FIX)
+ mAddresseeList = vcc.parseVCardsRaw( vCard.data() );
+#else
mAddresseeList = vcc.parseVCards( vCard );
+#endif
if ( !mAddresseeList.empty() ) {
itAddresseeList = mAddresseeList.begin();
mAddresseeView->setAddressee( *itAddresseeList );