diff options
Diffstat (limited to 'addressbook/backend')
-rw-r--r-- | addressbook/backend/ebook/e-card-simple.c | 10 | ||||
-rw-r--r-- | addressbook/backend/ebook/e-destination.c | 5 |
2 files changed, 12 insertions, 3 deletions
diff --git a/addressbook/backend/ebook/e-card-simple.c b/addressbook/backend/ebook/e-card-simple.c index d6baddaadd..7f0dd263b4 100644 --- a/addressbook/backend/ebook/e-card-simple.c +++ b/addressbook/backend/ebook/e-card-simple.c @@ -831,6 +831,8 @@ char *e_card_simple_get (ECardSimple *simple, switch (field) { case E_CARD_SIMPLE_FIELD_NAME_OR_ORG: if (simple->card) { + gboolean is_list; + gtk_object_get(GTK_OBJECT(simple->card), "file_as", &string, NULL); @@ -846,8 +848,12 @@ char *e_card_simple_get (ECardSimple *simple, NULL); if (string && *string) return g_strdup(string); - string = e_card_simple_get_email(simple, - E_CARD_SIMPLE_EMAIL_ID_EMAIL); + is_list = e_card_evolution_list (simple->card); + if (is_list) + string = _("Unnamed List"); + else + string = e_card_simple_get_email(simple, + E_CARD_SIMPLE_EMAIL_ID_EMAIL); return g_strdup(string); } else return NULL; diff --git a/addressbook/backend/ebook/e-destination.c b/addressbook/backend/ebook/e-destination.c index c83d908e9b..25932c29e6 100644 --- a/addressbook/backend/ebook/e-destination.c +++ b/addressbook/backend/ebook/e-destination.c @@ -702,7 +702,10 @@ e_destination_get_name (const EDestination *dest) if (priv->name == NULL || *priv->name == '\0') { g_free (priv->name); - priv->name = g_strdup (e_destination_get_email (dest)); + if (e_card_evolution_list (priv->card)) + priv->name = g_strdup (_("Unnamed List")); + else + priv->name = g_strdup (e_destination_get_email (dest)); } } else if (priv->raw != NULL) { CamelInternetAddress *addr = camel_internet_address_new (); |