aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
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
parent5a2fbc78d98a8219e4b11176d743cbcaf61b6adf (diff)
downloadgsoc2013-evolution-f53bd65b2e5816e409144186bf397c526819efdb.tar
gsoc2013-evolution-f53bd65b2e5816e409144186bf397c526819efdb.tar.gz
gsoc2013-evolution-f53bd65b2e5816e409144186bf397c526819efdb.tar.bz2
gsoc2013-evolution-f53bd65b2e5816e409144186bf397c526819efdb.tar.lz
gsoc2013-evolution-f53bd65b2e5816e409144186bf397c526819efdb.tar.xz
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')
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/gui/calendar-component.c4
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);