aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-08-12 22:33:56 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-08-12 22:33:56 +0800
commite5882036d054d772d1da989f185a354bd58d9a0e (patch)
tree68151f5d5122cfbbfad3d67f990f417da5c96dcf /calendar/gui/e-day-view.c
parentf70abe264a1febd6a17405a67610133e180470bb (diff)
downloadgsoc2013-evolution-e5882036d054d772d1da989f185a354bd58d9a0e.tar
gsoc2013-evolution-e5882036d054d772d1da989f185a354bd58d9a0e.tar.gz
gsoc2013-evolution-e5882036d054d772d1da989f185a354bd58d9a0e.tar.bz2
gsoc2013-evolution-e5882036d054d772d1da989f185a354bd58d9a0e.tar.lz
gsoc2013-evolution-e5882036d054d772d1da989f185a354bd58d9a0e.tar.xz
gsoc2013-evolution-e5882036d054d772d1da989f185a354bd58d9a0e.tar.zst
gsoc2013-evolution-e5882036d054d772d1da989f185a354bd58d9a0e.zip
Fixes #312739
svn path=/trunk/; revision=30100
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