From fec69a20e1ede0071e64e47afb12974a7f74abe2 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 21 Sep 2004 16:09:59 +0000 Subject: Fixes #66158 2004-09-20 JP Rosevear Fixes #66158 * gui/e-cal-model-tasks.c (e_cal_model_tasks_mark_task_complete): notify of change so completion status updates immediately svn path=/trunk/; revision=27319 --- calendar/ChangeLog | 7 +++++++ calendar/gui/e-cal-model-tasks.c | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 3e3ec15289..2534b0e5d3 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2004-09-20 JP Rosevear + + Fixes #66158 + + * gui/e-cal-model-tasks.c (e_cal_model_tasks_mark_task_complete): + notify of change so completion status updates immediately + 2004-09-21 JP Rosevear Fixes #59194 diff --git a/calendar/gui/e-cal-model-tasks.c b/calendar/gui/e-cal-model-tasks.c index 1b1d30427c..fe162cc388 100644 --- a/calendar/gui/e-cal-model-tasks.c +++ b/calendar/gui/e-cal-model-tasks.c @@ -1099,6 +1099,11 @@ e_cal_model_tasks_mark_task_complete (ECalModelTasks *model, gint model_row) priv = model->priv; comp_data = e_cal_model_get_component_at (E_CAL_MODEL (model), model_row); - if (comp_data) + if (comp_data) { + e_table_model_pre_change (E_TABLE_MODEL (model)); + ensure_task_complete (comp_data, -1); + + e_table_model_row_changed (E_TABLE_MODEL (model), model_row); + } } -- cgit v1.2.3