mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TW-1581: Wrong urgency after done/delete command
- TDB2::dependency_scan() is run before GC, so we need to check both tasks in a dependency chain for their status before setting the blocking/blocked flag to true.
This commit is contained in:
parent
96922231b8
commit
d2e6c90446
2 changed files with 10 additions and 3 deletions
10
src/TDB2.cpp
10
src/TDB2.cpp
|
@ -462,9 +462,13 @@ void TF2::dependency_scan ()
|
|||
{
|
||||
if (right->get ("uuid") == *d)
|
||||
{
|
||||
Task::status status = right->getStatus ();
|
||||
if (status != Task::completed &&
|
||||
status != Task::deleted)
|
||||
// GC hasn't run yet, check both tasks for their current status
|
||||
Task::status lstatus = left->getStatus ();
|
||||
Task::status rstatus = right->getStatus ();
|
||||
if (lstatus != Task::completed &&
|
||||
lstatus != Task::deleted &&
|
||||
rstatus != Task::completed &&
|
||||
rstatus != Task::deleted)
|
||||
{
|
||||
left->is_blocked = true;
|
||||
right->is_blocking = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue