From 6e1736752fa8beb8d9608e448e1d82d41d18a924 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Thu, 4 Aug 2005 17:19:06 +0000 Subject: Fixes #302460 svn path=/trunk/; revision=29994 --- calendar/gui/e-day-view.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index 29ebe0d99b..caaf1ae6a9 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -3306,13 +3306,18 @@ e_day_view_on_event_double_click (EDayView *day_view, event = &g_array_index (day_view->events[day], EDayViewEvent, event_num); - e_day_view_stop_editing_event (day_view); - - - attendee_prop = icalcomponent_get_first_property (event->comp_data->icalcomp, ICAL_ATTENDEE_PROPERTY); - e_calendar_view_edit_appointment (E_CALENDAR_VIEW (day_view), + if (day == day_view->editing_event_day + && event_num == day_view->editing_event_num + && icalcomponent_get_current_property (event->comp_data->icalcomp)) { + attendee_prop = icalcomponent_get_first_property (event->comp_data->icalcomp, ICAL_ATTENDEE_PROPERTY) +; + e_calendar_view_edit_appointment (day_view, event->comp_data->client, event->comp_data->icalcomp, attendee_prop ? TRUE:FALSE); + } else + e_calendar_view_edit_appointment (day_view, + event->comp_data->client, + event->comp_data->icalcomp, FALSE); } static void -- cgit