aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index e72b96bf53..e0e68fb723 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -2924,18 +2924,19 @@ gnome_calendar_new_task (GnomeCalendar *gcal)
ECalComponent *comp;
icalcomponent *icalcomp;
const char *category;
+ guint32 flags = 0;
g_return_if_fail (gcal != NULL);
g_return_if_fail (GNOME_IS_CALENDAR (gcal));
priv = gcal->priv;
-
model = e_calendar_table_get_model (E_CALENDAR_TABLE (priv->todo));
ecal = e_cal_model_get_default_client (model);
if (!ecal)
return;
- tedit = task_editor_new (ecal, FALSE);
+ flags |= COMP_EDITOR_NEW_ITEM;
+ tedit = task_editor_new (ecal, flags);
icalcomp = e_cal_model_create_component_with_defaults (model);
comp = e_cal_component_new ();