diff options
Diffstat (limited to 'calendar/gui/e-cal-model.c')
-rw-r--r-- | calendar/gui/e-cal-model.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index 3fcd5fbe7a..c3380d0cef 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -1237,7 +1237,6 @@ find_client_data (ECalModel *model, ECal *client) return NULL; } -/* FIXME how do we prevent the same UID is different calendars? */ static ECalModelComponent * search_by_id_and_client (ECalModelPrivate *priv, ECal *client, const ECalComponentId *id) { @@ -1358,12 +1357,13 @@ e_cal_view_objects_added_cb (ECalView *query, GList *objects, gpointer user_data ECalModelComponent *comp_data; ECalComponentId *id; ECalComponent *comp = e_cal_component_new (); + ECal *client = e_cal_view_get_client (query); e_cal_component_set_icalcomponent (comp, icalcomponent_new_clone (l->data)); id = e_cal_component_get_id (comp); /* remove the components if they are already present and re-add them */ - while ((comp_data = search_by_id_and_client (priv, NULL, + while ((comp_data = search_by_id_and_client (priv, client, id))) { int pos; |