aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/dialogs/recurrence-page.c13
2 files changed, 18 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 8e22595888..3c8b6d0869 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-24 Rodrigo Moya <rodrigo@novell.com>
+
+ * gui/dialogs/recurrence-page.c (sensitize_buttons): if there are
+ detached instances, disable recurrence date widgets.
+
2005-01-21 JP Rosevear <jpr@novell.com>
Fixes #46404
diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c
index 9d61469aac..44b0e2c555 100644
--- a/calendar/gui/dialogs/recurrence-page.c
+++ b/calendar/gui/dialogs/recurrence-page.c
@@ -531,6 +531,19 @@ sensitize_buttons (RecurrencePage *rpage)
read_only = TRUE;
icalcomponent_free (icalcomp);
}
+
+ if (!read_only) {
+ GList *list;
+
+ /* see if we have detached instances */
+ if (e_cal_get_objects_for_uid (COMP_EDITOR_PAGE (rpage)->client, uid, &list, NULL)) {
+ if (list && g_list_length (list) > 1)
+ read_only = TRUE;
+
+ g_list_foreach (list, (GFunc) icalcomponent_free, NULL);
+ g_list_free (list);
+ }
+ }
}
if (!read_only)