summaryrefslogtreecommitdiff
path: root/conversion/kabcconversion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'conversion/kabcconversion.cpp')
-rw-r--r--conversion/kabcconversion.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/conversion/kabcconversion.cpp b/conversion/kabcconversion.cpp
index 566652f..76d9597 100644
--- a/conversion/kabcconversion.cpp
+++ b/conversion/kabcconversion.cpp
@@ -660,7 +660,9 @@ Kolab::Contact fromKABC(const KABC::Addressee &addressee)
if (!relateds.empty()) {
businessAff.setRelateds(relateds);
}
- c.setAffiliations(std::vector<Kolab::Affiliation>() << businessAff);
+ if (!(businessAff == Kolab::Affiliation())) {
+ c.setAffiliations(std::vector<Kolab::Affiliation>() << businessAff);
+ }
std::vector<Kolab::Url> urls;
if (!addressee.url().isEmpty()) {