From e5882036d054d772d1da989f185a354bd58d9a0e Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Fri, 12 Aug 2005 14:33:56 +0000 Subject: Fixes #312739 svn path=/trunk/; revision=30100 --- calendar/gui/e-day-view.c | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index caaf1ae6a9..5a2b806119 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -3301,23 +3301,16 @@ e_day_view_on_event_double_click (EDayView *day_view, if (day == -1) event = &g_array_index (day_view->long_events, EDayViewEvent, - event_num); + event_num); else event = &g_array_index (day_view->events[day], EDayViewEvent, - event_num); + event_num); + + attendee_prop = icalcomponent_get_first_property (event->comp_data->icalcomp, ICAL_ATTENDEE_PROPERTY); - 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); + e_calendar_view_edit_appointment (day_view, + event->comp_data->client, + event->comp_data->icalcomp, attendee_prop ? TRUE:FALSE); } static void -- cgit