diff options
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 6 | ||||
-rw-r--r-- | calendar/gui/calendar-component.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 99ce2b2791..4a6ca816dd 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2004-03-19 Rodrigo Moya <rodrigo@ximian.com> + + * gui/calendar-component.c (update_uris_for_selection): if + gnome_calendar_add_event_source fails, don't add the client to the + internal client list. + 2004-03-19 JP Rosevear <jpr@ximian.com> * gui/e-day-view.c (process_component): compare ecalcomponents, diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c index c75e96c440..4e389ddfc6 100644 --- a/calendar/gui/calendar-component.c +++ b/calendar/gui/calendar-component.c @@ -146,8 +146,8 @@ update_uris_for_selection (CalendarComponent *calendar_component) for (l = selection; l; l = l->next) { ESource *selected_source = l->data; - gnome_calendar_add_event_source (priv->calendar, selected_source); - uids_selected = g_slist_append (uids_selected, (char *) e_source_peek_uid (selected_source)); + if (gnome_calendar_add_event_source (priv->calendar, selected_source)) + uids_selected = g_slist_append (uids_selected, (char *) e_source_peek_uid (selected_source)); } e_source_selector_free_selection (priv->source_selection); |