aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2004-03-20 00:52:01 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-03-20 00:52:01 +0800
commitf53bd65b2e5816e409144186bf397c526819efdb (patch)
treeb37b28c41b4aceb20641d2503cf9612c6aed0c29 /calendar/gui
parent5a2fbc78d98a8219e4b11176d743cbcaf61b6adf (diff)
downloadgsoc2013-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
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/calendar-component.c4
1 files changed, 2 insertions, 2 deletions
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);