Task: ::getStatus no longer autovivifies

This commit is contained in:
Paul Beckingham 2016-02-02 23:23:14 -05:00
parent f2abdfd562
commit 8275181022

View file

@ -291,6 +291,9 @@ void Task::remove (const std::string& name)
////////////////////////////////////////////////////////////////////////////////
Task::status Task::getStatus () const
{
if (! has ("status"))
return Task::pending;
return textToStatus (get ("status"));
}