[evolution-mapi/gnome-2-28] BUGFIX #601202 - Evo deletes system addressbook
- From: Bharath Acharya <abharath src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-mapi/gnome-2-28] BUGFIX #601202 - Evo deletes system addressbook
- Date: Fri, 27 Nov 2009 07:01:53 +0000 (UTC)
commit 96c6898150c748287ae6a25fa7ac1ed17a57109e
Author: Bharath Acharya <abharath novell com>
Date: Fri Nov 27 12:30:33 2009 +0530
BUGFIX #601202 - Evo deletes system addressbook
Set the esource property for the standard address book and for GAL to disable
deletion.
.../exchange-mapi-account-listener.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/account-setup-eplugin/exchange-mapi-account-listener.c b/src/account-setup-eplugin/exchange-mapi-account-listener.c
index 4ac15c6..fe095df 100644
--- a/src/account-setup-eplugin/exchange-mapi-account-listener.c
+++ b/src/account-setup-eplugin/exchange-mapi-account-listener.c
@@ -452,6 +452,8 @@ add_addressbook_sources (EAccount *account, GSList *folders)
e_source_set_property (source, "offline_sync",
camel_url_get_param (url, "offline_sync") ? "1" : "0");
e_source_set_property (source, "completion", "true");
+ if (folder->is_default)
+ e_source_set_property (source, "delete", "no");
e_source_group_add_source (group, source, -1);
g_object_unref (source);
}
@@ -476,6 +478,7 @@ add_addressbook_sources (EAccount *account, GSList *folders)
// camel_url_get_param (url, "offline_sync") ? "1" : "0");
e_source_set_property(source, "offline_sync", "1");
e_source_set_property (source, "completion", "true");
+ e_source_set_property (source, "delete", "no");
e_source_group_add_source (group, source, -1);
g_object_unref (source);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]