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/e-calendar-table.c | |
parent | 4dddf579f7e114957c38a8df0903c1476e79c267 (diff) | |
download | gsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.tar.gz gsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.tar.zst gsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.zip |
Fixes #317014
svn path=/trunk/; revision=30418
Diffstat (limited to 'calendar/gui/e-calendar-table.c')
-rw-r--r-- | calendar/gui/e-calendar-table.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/calendar/gui/e-calendar-table.c b/calendar/gui/e-calendar-table.c index 71eaec8193..6ea5514f45 100644 --- a/calendar/gui/e-calendar-table.c +++ b/calendar/gui/e-calendar-table.c @@ -938,6 +938,7 @@ e_calendar_table_open_task (ECalendarTable *cal_table, ECalModelComponent *comp_ { CompEditor *tedit; const char *uid; + guint32 flags = 0; uid = icalcomponent_get_uid (comp_data->icalcomp); @@ -945,17 +946,25 @@ e_calendar_table_open_task (ECalendarTable *cal_table, ECalModelComponent *comp_ if (tedit == NULL) { ECalComponent *comp; - tedit = COMP_EDITOR (task_editor_new (comp_data->client, assign)); - comp = e_cal_component_new (); e_cal_component_set_icalcomponent (comp, icalcomponent_new_clone (comp_data->icalcomp)); + + if (assign) { + flags |= COMP_EDITOR_IS_ASSIGNED; + + if (itip_organizer_is_user (comp, comp_data->client) || + !e_cal_component_has_attendees (comp)) + flags |= COMP_EDITOR_USER_ORG; + } + + tedit = COMP_EDITOR (task_editor_new (comp_data->client, flags)); comp_editor_edit_comp (tedit, comp); - if (assign) + + if (flags & COMP_EDITOR_IS_ASSIGNED) task_editor_show_assignment (TASK_EDITOR (tedit)); e_comp_editor_registry_add (comp_editor_registry, tedit, FALSE); } - comp_editor_focus (tedit); } |