Bug #434 - Task shouldn't prevent users from marking as done tasks with status:waiting

- Users can now complete tasks with status:waiting in addition to status:pending
This commit is contained in:
Cory Donnelly 2010-07-19 10:57:20 -04:00
parent d6a2c1872c
commit 6864ff91cd
2 changed files with 3 additions and 2 deletions

View file

@ -13,6 +13,7 @@
+ Default .taskrc files are now largely empty, and rely almost completed
on default values.
+ Fixed bug #433, making task command output more consistent.
+ Fixed bug #434, allowing users to complete tasks with status 'waiting'
------ old releases ------------------------------

View file

@ -1321,7 +1321,7 @@ int handleDone (std::string &outs)
bool nagged = false;
foreach (task, tasks)
{
if (task->getStatus () == Task::pending)
if ((task->getStatus () == Task::pending) || (task->getStatus () == Task::waiting))
{
Task before (*task);
@ -1374,7 +1374,7 @@ int handleDone (std::string &outs)
<< task->id
<< " '"
<< task->get ("description")
<< "' is not pending."
<< "' is neither pending nor waiting."
<< std::endl;
rc = 1;
}