diff --git a/data/tests/imp_vcard.difs b/data/tests/imp_vcard.difs deleted file mode 100644 index dec244679..000000000 --- a/data/tests/imp_vcard.difs +++ /dev/null @@ -1,5 +0,0 @@ -Mismatch on file: imp_vcard.vcf -Person: I0019 handle=0000001800000018 - Diff on: Person, primary_name, surname list #2, primary - : True - : False diff --git a/gramps/plugins/importer/importvcard.py b/gramps/plugins/importer/importvcard.py index 8a8e747d8..d5fb5f625 100644 --- a/gramps/plugins/importer/importvcard.py +++ b/gramps/plugins/importer/importvcard.py @@ -384,6 +384,7 @@ class VCardParser: surname.set_surname(sname.strip()) surname.set_prefix(prefix.strip()) name.add_surname(surname) + name.set_primary_surname() if len(data_fields) > 1 and data_fields[1].strip(): given_name = ' '.join(self.unesc(