From 8275181022ab5186f96fd93a13bcc059c7c10ef0 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 2 Feb 2016 23:23:14 -0500 Subject: [PATCH] Task: ::getStatus no longer autovivifies --- src/Task.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Task.cpp b/src/Task.cpp index eda9f9371..7efe845b2 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -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")); }