mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Task: ::getStatus no longer autovivifies
This commit is contained in:
parent
f2abdfd562
commit
8275181022
1 changed files with 3 additions and 0 deletions
|
@ -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"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue