Task: ::getStatus no longer autovivifies
This commit is contained in:
@@ -291,6 +291,9 @@ void Task::remove (const std::string& name)
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
Task::status Task::getStatus () const
|
Task::status Task::getStatus () const
|
||||||
{
|
{
|
||||||
|
if (! has ("status"))
|
||||||
|
return Task::pending;
|
||||||
|
|
||||||
return textToStatus (get ("status"));
|
return textToStatus (get ("status"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user