Diff between dea41fe55cc9b3e4e9d0217037817bfe962422ab and 2e28322a0f0be14e674fe37778df7ecc7e54aa7b

Changed Files

File Additions Deletions Status
obexd/plugins/vcard.c +6 -6 modified

Full Patch

diff --git a/obexd/plugins/vcard.c b/obexd/plugins/vcard.c
index d56133d..5948a4a 100644
--- a/obexd/plugins/vcard.c
+++ b/obexd/plugins/vcard.c
@@ -273,6 +273,12 @@ void phonebook_add_contact(GString *vcards, struct phonebook_contact *contact,
 
 	vcard_printf_begin(vcards, format);
 
+	if (filter & FILTER_N)
+		vcard_printf_name(vcards, contact);
+
+	if (filter & FILTER_FN)
+		vcard_printf_fullname(vcards, contact->fullname);
+
 	if (filter & FILTER_TEL) {
 		GSList *l;
 
@@ -284,12 +290,6 @@ void phonebook_add_contact(GString *vcards, struct phonebook_contact *contact,
 		}
 	}
 
-	if (filter & FILTER_N)
-		vcard_printf_name(vcards, contact);
-
-	if (filter & FILTER_FN)
-		vcard_printf_fullname(vcards, contact->fullname);
-
 	if (filter & FILTER_EMAIL)
 		vcard_printf_email(vcards, contact->email);