aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/select-names/e-select-names.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/component/select-names/e-select-names.c')
-rw-r--r--addressbook/gui/component/select-names/e-select-names.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names.c b/addressbook/gui/component/select-names/e-select-names.c
index e0ff5f6519..ece38c5efe 100644
--- a/addressbook/gui/component/select-names/e-select-names.c
+++ b/addressbook/gui/component/select-names/e-select-names.c
@@ -254,11 +254,9 @@ button_clicked(GtkWidget *button, ESelectNamesChild *child)
name = e_card_simple_get(simple, E_CARD_SIMPLE_FIELD_FULL_NAME);
email = e_card_simple_get(simple, E_CARD_SIMPLE_FIELD_EMAIL);
if (name && *name && email && *email) {
- new.string = g_strdup_printf("%s <%s>", name, email);
+ new.string = g_strdup_printf("\"%s\" <%s>", name, email);
} else if (email && *email) {
new.string = g_strdup_printf("%s", email);
- } else if (name && *name) {
- new.string = g_strdup_printf("%s <>", name);
} else {
new.string = g_strdup("");
}