Task: 'wait:' bug fix

- When 'wait:' is specified, it no longer sets 'status:waiting' because there
  is no value.  Thanks to Daniel Shahaf.
This commit is contained in:
Paul Beckingham 2015-08-22 12:16:45 -04:00
parent 54fecafcec
commit d640fed3d4

View file

@ -1427,7 +1427,8 @@ void Task::validate (bool applyDefault /* = true */)
// Tasks with a wait: date get a special status.
else if (status == Task::pending &&
has ("wait"))
has ("wait") &&
get ("wait") != "")
status = Task::waiting;
// By default, tasks are pending.