diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2004-03-20 00:52:01 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-03-20 00:52:01 +0800 |
commit | f53bd65b2e5816e409144186bf397c526819efdb (patch) | |
tree | b37b28c41b4aceb20641d2503cf9612c6aed0c29 | |
parent | 5a2fbc78d98a8219e4b11176d743cbcaf61b6adf (diff) | |
download | gsoc2013-evolution-f53bd65b2e5816e409144186bf397c526819efdb.tar.gz gsoc2013-evolution-f53bd65b2e5816e409144186bf397c526819efdb.tar.zst gsoc2013-evolution-f53bd65b2e5816e409144186bf397c526819efdb.zip |
if gnome_calendar_add_event_source fails, don't add the client to the
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.
svn path=/trunk/; revision=25130
-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); |