Add "force" parameter to notify_check_next_app()

This allows to force notify_check_next_app() to update the notification
appointment, even if start times are equal (e.g. if the item description
was changed).

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2011-07-29 18:01:38 +02:00
parent 8681af3c6d
commit 5a5c6d2604
4 changed files with 13 additions and 11 deletions

View File

@@ -516,7 +516,7 @@ apoint_delete_bynum (long start, unsigned num, enum eraseflg flag)
erase_note (&apt->note, flag);
mem_free (apt);
if (need_check_notify)
notify_check_next_app ();
notify_check_next_app (0);
break;
}
@@ -663,7 +663,7 @@ apoint_switch_notify (void)
if (notify_bar ())
notify_check_added (apt->mesg, apt->start, apt->state);
if (need_chk_notify)
notify_check_next_app ();
notify_check_next_app (0);
LLIST_TS_UNLOCK (&alist_p);
}