aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorGary Ekker <gekker@novell.com>2004-04-16 09:26:55 +0800
committerGary Ekker <gekker@src.gnome.org>2004-04-16 09:26:55 +0800
commitb350c58851f568637de0e296cf0e9a0569792c63 (patch)
tree02365e9642914b76c539fff3cb81557f4275a980 /calendar/gui
parent890c7ff4d7955c7ac0a3e562913dabcb8eefc43e (diff)
downloadgsoc2013-evolution-b350c58851f568637de0e296cf0e9a0569792c63.tar
gsoc2013-evolution-b350c58851f568637de0e296cf0e9a0569792c63.tar.gz
gsoc2013-evolution-b350c58851f568637de0e296cf0e9a0569792c63.tar.bz2
gsoc2013-evolution-b350c58851f568637de0e296cf0e9a0569792c63.tar.lz
gsoc2013-evolution-b350c58851f568637de0e296cf0e9a0569792c63.tar.xz
gsoc2013-evolution-b350c58851f568637de0e296cf0e9a0569792c63.tar.zst
gsoc2013-evolution-b350c58851f568637de0e296cf0e9a0569792c63.zip
Fixes #52271
2004-04-15 Gary Ekker <gekker@novell.com> 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
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"));
}