aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog2
-rw-r--r--calendar/gui/calendar-component.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 4bf31bd4f2..48294a7fc8 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -3,7 +3,7 @@
** Fix for bug #326388
* gui/calendar-component.c: (ensure_sources):
- Always set 'delete=no' property for birthdays_source.
+ Set 'delete=no' property for birthdays_source if its not set.
2007-07-29 Srinivasa Ragavan <sragavan@novell.com>
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index ce1debd7fb..95292cd0a9 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -290,7 +290,9 @@ ensure_sources (CalendarComponent *component)
birthdays_source = e_source_new (_("Birthdays & Anniversaries"), "/");
e_source_group_add_source (contacts, birthdays_source, -1);
}
- e_source_set_property(birthdays_source, "delete", "no");
+
+ if (!e_source_get_property (birthdays_source, "delete"))
+ e_source_set_property(birthdays_source, "delete", "no");
if (!weather) {
/* Create the weather group */