From b350c58851f568637de0e296cf0e9a0569792c63 Mon Sep 17 00:00:00 2001 From: Gary Ekker Date: Fri, 16 Apr 2004 01:26:55 +0000 Subject: Fixes #52271 2004-04-15 Gary Ekker Fixes #52271 * gui/e-cal-model-tasks.c: (set_percent): shouldn't call ensure_task_not_complete here, it removes the percent property that we just set. svn path=/trunk/; revision=25491 --- calendar/ChangeLog | 9 +++++++++ calendar/gui/e-cal-model-tasks.c | 7 ++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 3058c0107e..25fa64bd72 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,12 @@ +2004-04-15 Gary Ekker + + Fixes #52271 + + * gui/e-cal-model-tasks.c: (set_percent): shouldn't call + ensure_task_not_complete here, it removes the percent property that + we just set. + + 2004-04-15 JP Rosevear * gui/dialogs/task-page.c (task_page_fill_component): don't diff --git a/calendar/gui/e-cal-model-tasks.c b/calendar/gui/e-cal-model-tasks.c index 78ea87cf4d..9efa6d4b57 100644 --- a/calendar/gui/e-cal-model-tasks.c +++ b/calendar/gui/e-cal-model-tasks.c @@ -652,7 +652,12 @@ set_percent (ECalModelComponent *comp_data, const void *value) if (percent == 100) ensure_task_complete (comp_data, -1); else { - ensure_task_not_complete (comp_data); + prop = icalcomponent_get_first_property (comp_data->icalcomp, ICAL_COMPLETED_PROPERTY); + if (prop) { + icalcomponent_remove_property (comp_data->icalcomp, prop); + icalproperty_free (prop); + } + if (percent > 0) set_status (comp_data, _("In Progress")); } -- cgit v1.2.3