-rw-r--r-- | libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp b/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp index f3b6d56..0ffbb67 100644 --- a/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp +++ b/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp @@ -454,2 +454,7 @@ VObject* OPimContactAccessBackend_VCard::createVObject( const OPimContact &c ) // home properties + if ( !( c.homeStreet().isEmpty() + && c.homeCity().isEmpty() + && c.homeState().isEmpty() + && c.homeZip().isEmpty() + && c.homeCountry().isEmpty() ) ){ VObject *home_adr= safeAddProp( vcard, VCAdrProp ); @@ -461,2 +466,3 @@ VObject* OPimContactAccessBackend_VCard::createVObject( const OPimContact &c ) safeAddPropValue( home_adr, VCCountryNameProp, c.homeCountry() ); + } @@ -475,2 +481,7 @@ VObject* OPimContactAccessBackend_VCard::createVObject( const OPimContact &c ) // work properties + if ( !( c.businessStreet().isEmpty() + && c.businessCity().isEmpty() + && c.businessState().isEmpty() + && c.businessZip().isEmpty() + && c.businessCountry().isEmpty() ) ){ VObject *work_adr= safeAddProp( vcard, VCAdrProp ); @@ -482,2 +493,3 @@ VObject* OPimContactAccessBackend_VCard::createVObject( const OPimContact &c ) safeAddPropValue( work_adr, VCCountryNameProp, c.businessCountry() ); + } |