diff options
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | calendar/conduits/todo/todo-conduit.c | 14 |
2 files changed, 15 insertions, 4 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index d66b3674f0..357c0796ce 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,10 @@ 2000-09-10 JP Rosevear <jpr@helixcode.com> + * conduits/todo/todo-conduit.c (comp_from_remote_record): Only + set the due date only if it exists + +2000-09-10 JP Rosevear <jpr@helixcode.com> + * gui/calendar-model.c (get_is_complete): Relying on the status field is somewhat faulty since it is related to group scheduling diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c index c2e0eddfb0..6f1fd165f8 100644 --- a/calendar/conduits/todo/todo-conduit.c +++ b/calendar/conduits/todo/todo-conduit.c @@ -407,10 +407,16 @@ comp_from_remote_record (GnomePilotConduitStandardAbs *conduit, cal_component_set_percent (comp, &percent); } - due = icaltime_from_timet (mktime (& todo.due), FALSE, FALSE); - dt.value = &due; - cal_component_set_due (comp, &dt); - + /* FIX ME This is a bit hackish, how else can we tell if there is + * no due date set? + */ + if (todo.due.tm_sec || todo.due.tm_min || todo.due.tm_hour + || todo.due.tm_mday || todo.due.tm_mon || todo.due.tm_year) { + due = icaltime_from_timet (mktime (&todo.due), FALSE, FALSE); + dt.value = &due; + cal_component_set_due (comp, &dt); + } + cal_component_set_priority (comp, &todo.priority); cal_component_set_transparency (comp, CAL_COMPONENT_TRANSP_NONE); |