From c60c4bf7c4590b850d589d79ac44d057323a429f Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Mon, 10 Jan 2005 23:25:46 +0000 Subject: remove the temporary object from the view when stopping editing. 2005-01-10 Rodrigo Moya * gui/e-day-view.c (e_day_view_on_editing_stopped): remove the temporary object from the view when stopping editing. * gui/e-week-view.c (e_week_view_on_editing_stopped): ditto. svn path=/trunk/; revision=28341 --- calendar/gui/e-week-view.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'calendar/gui/e-week-view.c') diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index 5ddc16ff28..893254252a 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -3302,7 +3302,10 @@ e_week_view_on_editing_stopped (EWeekView *week_view, if (!e_cal_create_object (client, icalcomp, NULL, NULL)) g_message (G_STRLOC ": Could not create the object!"); else - g_signal_emit_by_name (week_view, "user_created"); + g_signal_emit_by_name (week_view, "user_created"); + + /* we remove the object since we either got the update from the server or failed */ + e_week_view_remove_event_cb (week_view, event_num, NULL); } else { CalObjModType mod = CALOBJ_MOD_ALL; GtkWindow *toplevel; -- cgit v1.2.3