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/tasks-component.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/tasks-component.c')
-rw-r--r-- | calendar/gui/tasks-component.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c index 4cd9994a32..cecab0726d 100644 --- a/calendar/gui/tasks-component.c +++ b/calendar/gui/tasks-component.c @@ -909,6 +909,7 @@ create_new_todo (TasksComponent *task_component, gboolean is_assigned, TasksComp TasksComponentPrivate *priv; ECalComponent *comp; TaskEditor *editor; + guint32 flags = 0; priv = task_component->priv; @@ -916,7 +917,12 @@ create_new_todo (TasksComponent *task_component, gboolean is_assigned, TasksComp if (!ecal) return FALSE; - editor = task_editor_new (ecal, is_assigned); + if (is_assigned) + flags |= COMP_EDITOR_IS_ASSIGNED; + + flags |= COMP_EDITOR_NEW_ITEM | COMP_EDITOR_USER_ORG; + + editor = task_editor_new (ecal, flags); comp = cal_comp_task_new_with_defaults (ecal); comp_editor_edit_comp (COMP_EDITOR (editor), comp); |