From 0e599a51a0d3bccc686103044822c8c22eb5756a Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 10 Apr 2017 17:23:11 -0400 Subject: [PATCH] Task: Added reminder to simplify validation --- src/Task.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Task.cpp b/src/Task.cpp index 12fd51544..2c5ff4342 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -1519,6 +1519,16 @@ void Task::validate (bool applyDefault /* = true */) { status = Task::recurring; } +/* + // TODO Add for 2.6.0 + if (status == Task::pending && + has ("due") && + has ("recur") && + (! has ("template") || get ("template") == "")) + { + status = Task::recurring; + } +*/ // Tasks with a wait: date get a special status. else if (status == Task::pending &&