aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/calendar.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/calendar.c')
-rw-r--r--calendar/calendar.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/calendar/calendar.c b/calendar/calendar.c
index f56ff082c8..dc480e3dfd 100644
--- a/calendar/calendar.c
+++ b/calendar/calendar.c
@@ -320,12 +320,24 @@ calendar_save (Calendar *cal, char *fname)
addPropValue (vcal, VCVersionProp, VERSION);
cal->temp = vcal;
- for (l = cal->events; l; l = l->next){
+ /* Events */
+
+ for (l = cal->events; l; l = l->next) {
VObject *obj;
obj = ical_object_to_vobject ((iCalObject *) l->data);
addVObjectProp (vcal, obj);
}
+
+ /* To-do entries */
+
+ for (l = cal->todo; l; l = l->next) {
+ VObject *obj;
+
+ obj = ical_object_to_vobject ((iCalObject *) l->data);
+ addVObjectProp (vcal, obj);
+ }
+
writeVObjectToFile (fname, vcal);
cleanVObject (vcal);
cleanStrTbl ();