aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-cal-model-tasks.c7
1 files changed, 6 insertions, 1 deletions
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"));
}