diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-09-29 21:02:56 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-09-29 21:02:56 +0800 |
commit | d097ac6883dab98ffe326299f7293062573433f8 (patch) | |
tree | dec701b00faadb4b2f2aeeb1232561717a5a96ce /calendar/gui/comp-editor-factory.c | |
parent | 4dddf579f7e114957c38a8df0903c1476e79c267 (diff) | |
download | gsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.tar gsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.tar.gz gsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.tar.bz2 gsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.tar.lz gsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.tar.xz gsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.tar.zst gsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.zip |
Fixes #317014
svn path=/trunk/; revision=30418
Diffstat (limited to 'calendar/gui/comp-editor-factory.c')
-rw-r--r-- | calendar/gui/comp-editor-factory.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/calendar/gui/comp-editor-factory.c b/calendar/gui/comp-editor-factory.c index ea6507ad06..6a69cb48c9 100644 --- a/calendar/gui/comp-editor-factory.c +++ b/calendar/gui/comp-editor-factory.c @@ -267,20 +267,20 @@ edit_existing (OpenClient *oc, const char *uid) /* Create the appropriate type of editor */ vtype = e_cal_component_get_vtype (comp); + if (itip_organizer_is_user (comp, oc->client)) + flags |= COMP_EDITOR_USER_ORG; + switch (vtype) { case E_CAL_COMPONENT_EVENT: if (e_cal_component_has_attendees (comp)) flags |= COMP_EDITOR_MEETING; - if (itip_organizer_is_user (comp, oc->client)) - flags |= COMP_EDITOR_USER_ORG; - editor = COMP_EDITOR (event_editor_new (oc->client, flags)); break; case E_CAL_COMPONENT_TODO: - editor = COMP_EDITOR (task_editor_new (oc->client, e_cal_component_has_attendees (comp))); + editor = COMP_EDITOR (task_editor_new (oc->client, flags)); break; default: |