Recurrence: Implemented reduction to single-task problem

This commit is contained in:
Paul Beckingham 2017-04-01 14:27:08 -04:00
parent 2810c70223
commit 45eb2cffbb

View file

@ -41,6 +41,11 @@ static void synthesizeTasks (const Task&)
// Generates all necessary recurring task instances. // Generates all necessary recurring task instances.
void handleRecurrence2 () void handleRecurrence2 ()
{ {
// Note: Disabling recurrence is currently a workaround for TD-44, TW-1520.
if (context.config.getBoolean ("recurrence"))
for (auto& t : context.tdb2.pending.get_tasks ())
if (t.getStatus () == Task::recurring)
synthesizeTasks (t);
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////