aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r--calendar/gui/e-day-view.c21
1 files changed, 7 insertions, 14 deletions
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