From 45eb2cffbbb242b920a40fad165d480b92be11b0 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 1 Apr 2017 14:27:08 -0400 Subject: [PATCH] Recurrence: Implemented reduction to single-task problem --- src/recur2.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/recur2.cpp b/src/recur2.cpp index e66a2459e..26b4753b0 100644 --- a/src/recur2.cpp +++ b/src/recur2.cpp @@ -41,6 +41,11 @@ static void synthesizeTasks (const Task&) // Generates all necessary recurring task instances. 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); } ////////////////////////////////////////////////////////////////////////////////