From d097ac6883dab98ffe326299f7293062573433f8 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Thu, 29 Sep 2005 13:02:56 +0000 Subject: Fixes #317014 svn path=/trunk/; revision=30418 --- calendar/gui/tasks-component.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'calendar/gui/tasks-component.c') 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); -- cgit v1.2.3