[nautilus-sendto] evolution: Fix addressbook source handling
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-sendto] evolution: Fix addressbook source handling
- Date: Wed, 11 Apr 2012 10:56:28 +0000 (UTC)
commit d382093aac2abadc0bf08932a1cb9d80a2ff44f2
Author: Milan Crha <mcrha redhat com>
Date: Wed Apr 11 11:54:24 2012 +0100
evolution: Fix addressbook source handling
src/plugins/evolution/e-contact-entry.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/evolution/e-contact-entry.c b/src/plugins/evolution/e-contact-entry.c
index e504c71..f96686e 100644
--- a/src/plugins/evolution/e-contact-entry.c
+++ b/src/plugins/evolution/e-contact-entry.c
@@ -502,7 +502,10 @@ e_contact_entry_set_source_list (EContactEntry *entry,
EntryLookup *lookup;
char *uri;
- uri = g_strdup_printf("%s/%s", e_source_group_peek_base_uri (group), e_source_peek_relative_uri (source));
+ if (g_strcmp0 (e_source_group_peek_base_uri (group), "local:") == 0)
+ uri = g_strdup_printf ("%s%s", e_source_group_peek_base_uri (group), e_source_peek_relative_uri (source));
+ else
+ uri = g_strdup_printf ("%s/%s", e_source_group_peek_base_uri (group), e_source_peek_relative_uri (source));
e_source_set_absolute_uri (s, uri);
g_free (uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]