From 03bacd4b8c2c425addbb08d69cfc94f7cc10a8ea Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 22 Jan 2004 15:45:08 +0000 Subject: don't assert if we can't find the component, just continue with next item 2004-01-22 Rodrigo Moya * gui/e-cal-model.c (e_cal_view_objects_removed_cb): don't assert if we can't find the component, just continue with next item in the list. svn path=/trunk/; revision=24365 --- calendar/ChangeLog | 8 +++++++- calendar/gui/e-cal-model.c | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index ba87434689..d77a0f4154 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2004-01-22 Rodrigo Moya + + * gui/e-cal-model.c (e_cal_view_objects_removed_cb): don't assert + if we can't find the component, just continue with next item in + the list. + 2004-01-22 JP Rosevear * gui/e-tasks.c (e_tasks_setup_view_menus): Remove debugging @@ -14,7 +20,7 @@ base dir for the view storage Fixes #53133 - + 2004-01-21 Rodrigo Moya * gui/e-tasks.c (e_tasks_add_todo_source): check return value diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index cb463deb21..26283e3b32 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -1215,7 +1215,8 @@ e_cal_view_objects_removed_cb (ECalView *query, GList *uids, gpointer user_data) e_table_model_pre_change (E_TABLE_MODEL (model)); comp_data = search_by_uid_and_client (priv, e_cal_view_get_client (query), l->data); - g_assert (comp_data); + if (!comp_data) + continue; pos = get_position_in_array (priv->objects, comp_data); -- cgit v1.2.3