aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/gui/dialogs/task-details-page.c5
2 files changed, 12 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 72dbd06e17..bda07d2c3d 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,11 @@
+2003-08-27 Hans Petter Jansson <hpj@ximian.com>
+
+ Fixes #29032.
+
+ * gui/dialogs/task-details-page.c (status_changed): When task status
+ is set to "In Progress", set percent complete to 50% only if it was
+ previously set to 0% or 100%.
+
2003-08-27 Bolian Yin <bolian.yin@sun.com>
* gui/Makefile.am use libevolution-calendar-a11y instead of libevolution-a11y.
diff --git a/calendar/gui/dialogs/task-details-page.c b/calendar/gui/dialogs/task-details-page.c
index 717ee7987d..cdaa8d08a1 100644
--- a/calendar/gui/dialogs/task-details-page.c
+++ b/calendar/gui/dialogs/task-details-page.c
@@ -594,7 +594,10 @@ status_changed (GtkMenu *menu, TaskDetailsPage *tdpage)
e_date_edit_set_time (E_DATE_EDIT (priv->completed_date), ctime);
complete_date_changed (tdpage, 0, FALSE);
} else if (status == ICAL_STATUS_INPROCESS) {
- e_dialog_spin_set (priv->percent_complete, 50);
+ gint percent_complete = e_dialog_spin_get_int (priv->percent_complete);
+ if (percent_complete <= 0 || percent_complete >= 100)
+ e_dialog_spin_set (priv->percent_complete, 50);
+
e_date_edit_set_time (E_DATE_EDIT (priv->completed_date), ctime);
complete_date_changed (tdpage, 0, FALSE);
} else if (status == ICAL_STATUS_COMPLETED) {