bugfix: forgot to save item state for endless recurrent appointments

This commit is contained in:
Frederic Culot 2007-04-14 18:46:54 +00:00
parent 9e8689f58b
commit d70c7f96a1

View File

@ -1,4 +1,4 @@
/* $calcurse: recur.c,v 1.24 2007/04/04 19:38:18 culot Exp $ */ /* $calcurse: recur.c,v 1.25 2007/04/14 18:46:54 culot Exp $ */
/* /*
* Calcurse - text-based organizer * Calcurse - text-based organizer
@ -209,14 +209,12 @@ recur_apoint_write(recur_apoint_llist_node_t *o, FILE *f)
if (t == 0) { /* We have an endless recurrent appointment. */ if (t == 0) { /* We have an endless recurrent appointment. */
fprintf(f, " {%d%c", o->rpt->freq, fprintf(f, " {%d%c", o->rpt->freq,
recur_def2char(o->rpt->type)); recur_def2char(o->rpt->type));
if (o->exc != 0)
recur_write_exc(o->exc, f);
fprintf(f, "} |%s\n", o->mesg);
} else { } else {
lt = localtime(&t); lt = localtime(&t);
fprintf(f, " {%d%c -> %02u/%02u/%04u", fprintf(f, " {%d%c -> %02u/%02u/%04u",
o->rpt->freq, recur_def2char(o->rpt->type), o->rpt->freq, recur_def2char(o->rpt->type),
lt->tm_mon + 1, lt->tm_mday, 1900 + lt->tm_year); lt->tm_mon + 1, lt->tm_mday, 1900 + lt->tm_year);
}
if (o->exc != 0) if (o->exc != 0)
recur_write_exc(o->exc, f); recur_write_exc(o->exc, f);
if (o->state & APOINT_NOTIFY) if (o->state & APOINT_NOTIFY)
@ -225,7 +223,6 @@ recur_apoint_write(recur_apoint_llist_node_t *o, FILE *f)
fprintf(f, "} |"); fprintf(f, "} |");
fprintf(f, "%s\n", o->mesg); fprintf(f, "%s\n", o->mesg);
} }
}
/* Writting of a recursive event into file. */ /* Writting of a recursive event into file. */
void recur_event_write(struct recur_event_s *o, FILE *f) void recur_event_write(struct recur_event_s *o, FILE *f)