Recurrence: Broke out handleUntil as a separate function

- This means until porocesing is no longer controlled by rc.recurrence, which
  was never intended.
This commit is contained in:
Paul Beckingham 2017-04-06 00:29:20 -04:00
parent e991004c43
commit 97b038ce29
14 changed files with 40 additions and 12 deletions

View file

@ -139,18 +139,6 @@ void handleRecurrence ()
context.footnote (format (STRING_RECUR_CREATE, t.get ("description")));
}
}
// Non-recurring tasks expire too.
else
{
if (t.has ("until") &&
Datetime (t.get_date ("until")) < now)
{
t.setStatus (Task::deleted);
context.tdb2.modify(t);
context.footnote (onExpiration (t));
}
}
}
}