diff options
Diffstat (limited to 'calendar/gui/comp-editor-factory.c')
-rw-r--r-- | calendar/gui/comp-editor-factory.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/calendar/gui/comp-editor-factory.c b/calendar/gui/comp-editor-factory.c index da7bba1a93..ea809b35e5 100644 --- a/calendar/gui/comp-editor-factory.c +++ b/calendar/gui/comp-editor-factory.c @@ -245,8 +245,6 @@ edit_existing (OpenClient *oc, const char *uid) icalcomponent *icalcomp; CompEditor *editor; ECalComponentVType vtype; - /* Presence of attendees indicates that component is a meeting */ - GSList *attendees = NULL; g_assert (oc->open); @@ -271,8 +269,7 @@ edit_existing (OpenClient *oc, const char *uid) switch (vtype) { case E_CAL_COMPONENT_EVENT: - e_cal_component_get_attendee_list (comp, &attendees); - editor = COMP_EDITOR (event_editor_new (oc->client, attendees ? TRUE: FALSE)); + editor = COMP_EDITOR (event_editor_new (oc->client, e_cal_component_has_attendees (comp))); break; case E_CAL_COMPONENT_TODO: |