mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +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
|
@ -3,6 +3,9 @@
|
|||
- TW-1578 Bash tab completion problems on first run
|
||||
(thanks to Renato Alves and Ptolemarch).
|
||||
- TW-1580 "modified" attribute no longer updated (thanks to David Patrick).
|
||||
- TW-1581 Tasks with dependencies show wrong urgency values for the first
|
||||
report run after a task in the dependency chain is completed/deleted (thanks
|
||||
to Ulf Eliasson).
|
||||
- Setting 'bulk' to zero is interpreted as infinity, which means there is no
|
||||
amount of changes that is considered dangerous (thanks to Tomas Babej).
|
||||
|
||||
|
|
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