Pass item durations to recur_item_inday()
Having item's durations eventually allows for better parsing of recurrent appointments as we might be interested in how many days are covered by a multi-day appointment. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
@@ -513,9 +513,9 @@ notify_check_repeated (struct recur_apoint *i)
|
||||
|
||||
current_time = time (NULL);
|
||||
pthread_mutex_lock (¬ify_app.mutex);
|
||||
if ((real_app_time = recur_item_inday (i->start, &i->exc, i->rpt->type,
|
||||
i->rpt->freq, i->rpt->until,
|
||||
get_today ())))
|
||||
if ((real_app_time = recur_item_inday (i->start, i->dur, &i->exc,
|
||||
i->rpt->type, i->rpt->freq,
|
||||
i->rpt->until, get_today ())))
|
||||
{
|
||||
if (!notify_app.got_app)
|
||||
{
|
||||
@@ -558,7 +558,7 @@ notify_same_recur_item (struct recur_apoint *i)
|
||||
int same = 0;
|
||||
long item_start = 0;
|
||||
|
||||
item_start = recur_item_inday (i->start, &i->exc, i->rpt->type,
|
||||
item_start = recur_item_inday (i->start, i->dur, &i->exc, i->rpt->type,
|
||||
i->rpt->freq, i->rpt->until, get_today ());
|
||||
pthread_mutex_lock (¬ify_app.mutex);
|
||||
if (notify_app.got_app && item_start == notify_app.time)
|
||||
|
||||
Reference in New Issue
Block a user