[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdepim/dev/lespetitspedestres] kaddressbook/xxport: FIX : vCard 4.0 export
From:       Mathieu SOUM <mathieu.soum () gmail ! com>
Date:       2014-03-19 19:16:55
Message-ID: E1WQLyx-0001Wq-TU () scm ! kde ! org
[Download RAW message or body]

Git commit 161cbba7c691d88394a5b6c4d0dc165afcba583b by Mathieu SOUM, on behalf of \
Clément Vannier. Committed on 20/02/2014 at 16:12.
Pushed by msoum into branch 'dev/lespetitspedestres'.

FIX : vCard 4.0 export
Forgot to add an else if for the case vCard 4.0

M  +4    -1    kaddressbook/xxport/xxportfactory.cpp

http://commits.kde.org/kdepim/161cbba7c691d88394a5b6c4d0dc165afcba583b

diff --git a/kaddressbook/xxport/xxportfactory.cpp \
b/kaddressbook/xxport/xxportfactory.cpp index 6275286..8f06f54 100644
--- a/kaddressbook/xxport/xxportfactory.cpp
+++ b/kaddressbook/xxport/xxportfactory.cpp
@@ -27,7 +27,7 @@
 
 XXPort *XXPortFactory::createXXPort( const QString &identifier, QWidget \
*parentWidget ) const  {
-  if ( identifier == QLatin1String("vcard21") || identifier == \
QLatin1String("vcard30") ) { +  if ( identifier == QLatin1String("vcard21") || \
identifier == QLatin1String("vcard30") || identifier == QLatin1String("vcard40") ) {  \
XXPort *xxport = new VCardXXPort( parentWidget );  if ( identifier == \
                QLatin1String("vcard21") ) {
       xxport->setOption( QLatin1String("version"), QLatin1String("v21") );
@@ -35,6 +35,9 @@ XXPort *XXPortFactory::createXXPort( const QString &identifier, \
QWidget *parentW  else if ( identifier == QLatin1String("vcard30") ) {
       xxport->setOption( QLatin1String("version"), QLatin1String("v30") );
     }
+    else if ( identifier == QLatin1String("vcard40") ) {
+      xxport->setOption( QLatin1String("version"), QLatin1String("v40") );
+    }
     return xxport;
   } else if ( identifier == QLatin1String("csv") ) {
     return new CsvXXPort( parentWidget );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic