mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug Fix - #194
- Fixed bug that causes tasks awaking from their waiting state to not be written back to the pending file.
This commit is contained in:
parent
c275ded443
commit
f790d52f62
1 changed files with 2 additions and 0 deletions
|
@ -411,6 +411,7 @@ int TDB::commit ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Scans the pending tasks for any that are completed or deleted, and if so,
|
||||
// moves them to the completed.data file. Returns a count of tasks moved.
|
||||
// Now reverts expired waiting tasks to pending.
|
||||
int TDB::gc ()
|
||||
{
|
||||
Timer t ("TDB::gc");
|
||||
|
@ -451,6 +452,7 @@ int TDB::gc ()
|
|||
{
|
||||
task->setStatus (Task::pending);
|
||||
task->remove ("wait");
|
||||
++count;
|
||||
}
|
||||
|
||||
still_pending.push_back (*task);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue