mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 07:57:20 +02:00
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:
parent
d6a2c1872c
commit
6864ff91cd
2 changed files with 3 additions and 2 deletions
|
@ -13,6 +13,7 @@
|
||||||
+ Default .taskrc files are now largely empty, and rely almost completed
|
+ Default .taskrc files are now largely empty, and rely almost completed
|
||||||
on default values.
|
on default values.
|
||||||
+ Fixed bug #433, making task command output more consistent.
|
+ Fixed bug #433, making task command output more consistent.
|
||||||
|
+ Fixed bug #434, allowing users to complete tasks with status 'waiting'
|
||||||
|
|
||||||
------ old releases ------------------------------
|
------ old releases ------------------------------
|
||||||
|
|
||||||
|
|
|
@ -1321,7 +1321,7 @@ int handleDone (std::string &outs)
|
||||||
bool nagged = false;
|
bool nagged = false;
|
||||||
foreach (task, tasks)
|
foreach (task, tasks)
|
||||||
{
|
{
|
||||||
if (task->getStatus () == Task::pending)
|
if ((task->getStatus () == Task::pending) || (task->getStatus () == Task::waiting))
|
||||||
{
|
{
|
||||||
Task before (*task);
|
Task before (*task);
|
||||||
|
|
||||||
|
@ -1374,7 +1374,7 @@ int handleDone (std::string &outs)
|
||||||
<< task->id
|
<< task->id
|
||||||
<< " '"
|
<< " '"
|
||||||
<< task->get ("description")
|
<< task->get ("description")
|
||||||
<< "' is not pending."
|
<< "' is neither pending nor waiting."
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
rc = 1;
|
rc = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue