From fddaca77ca2461d448e564f4d9e317476e9feea2 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Fri, 16 Jul 2004 14:30:49 +0000 Subject: Fixes #57142 2004-07-15 Rodrigo Moya Fixes #57142 * gui/e-day-view.c (e_day_view_on_editing_stopped): commit the sequence on the object before sending it to the backend. (e_day_view_add_event): s/abort_sequence/commit_sequence. * gui/e-week-view.c (e_week_view_on_editing_stopped): commit the sequence here also. (e_week_view_add_event): s/abort_sequence/commit_sequence. * gui/comp-util.c (cal_comp_event_new_with_current_time): don't commit the sequence here. svn path=/trunk/; revision=26665 --- calendar/gui/e-day-view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'calendar/gui/e-day-view.c') diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index 0be9d6f4ca..43715338d0 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -4124,7 +4124,7 @@ e_day_view_add_event (ECalComponent *comp, event.comp_data = g_new0 (ECalModelComponent, 1); event.comp_data->client = g_object_ref (e_cal_model_get_default_client (e_calendar_view_get_model (E_CALENDAR_VIEW (add_event_data->day_view)))); - e_cal_component_commit_sequence (comp); + e_cal_component_abort_sequence (comp); event.comp_data->icalcomp = icalcomponent_new_clone (e_cal_component_get_icalcomponent (comp)); } @@ -6045,6 +6045,7 @@ e_day_view_on_editing_stopped (EDayView *day_view, summary.value = text; summary.altrep = NULL; e_cal_component_set_summary (comp, &summary); + e_cal_component_commit_sequence (comp); if (!on_server) { if (!e_cal_create_object (client, icalcomp, NULL, NULL)) -- cgit v1.2.3