From 518f56b499344bf14f62f820912c6491e2865f00 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 15 Jun 2014 09:34:21 -0400 Subject: [PATCH] Task - Durations are now stored as-is, with no evaluation. --- src/Task.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/Task.cpp b/src/Task.cpp index 2b586c8cb..e09a74f1c 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -2031,26 +2031,10 @@ void Task::modify (modType type, bool text_required /* = false */) } // Special case: type duration. - // Durations too. else if (name == "recur" || column->type () == "duration") { - // TODO Store the raw value, for 'recur', else result. -/* - Eval e; - e.addSource (domSource); - e.addSource (namedDates); - e.ambiguity (false); - contextTask = *this; - - Variant v; - e.evaluateInfixExpression (value, v); - context.debug (label + name + " <-- " + v.get_string () + " <-- " + value); - - v.cast (Variant::type_duration); - v.cast (Variant::type_string); - set (name, v); -*/ + // Store the raw value, for 'recur', else result. set (name, value); ++modCount; }