mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Task
- Durations are now stored as-is, with no evaluation.
This commit is contained in:
parent
b7d668fb7d
commit
518f56b499
1 changed files with 1 additions and 17 deletions
18
src/Task.cpp
18
src/Task.cpp
|
@ -2031,26 +2031,10 @@ void Task::modify (modType type, bool text_required /* = false */)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Special case: type duration.
|
// Special case: type duration.
|
||||||
// Durations too.
|
|
||||||
else if (name == "recur" ||
|
else if (name == "recur" ||
|
||||||
column->type () == "duration")
|
column->type () == "duration")
|
||||||
{
|
{
|
||||||
// TODO Store the raw value, for 'recur', else result.
|
// 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);
|
|
||||||
*/
|
|
||||||
set (name, value);
|
set (name, value);
|
||||||
++modCount;
|
++modCount;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue