mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TW-1481: Unable to assign a completed task as dependency
- Thanks to Tomas Babej.
This commit is contained in:
parent
253fd35dc7
commit
f7d0f500fc
3 changed files with 4 additions and 5 deletions
|
@ -2031,14 +2031,14 @@ void Task::modify (modType type, bool text_required /* = false */)
|
|||
if (dep[0] == '-')
|
||||
{
|
||||
if (dep.length () == 37)
|
||||
removeDependency (context.tdb2.pending.id (dep.substr (1)));
|
||||
removeDependency (dep.substr (1));
|
||||
else
|
||||
removeDependency (strtol (dep.substr (1).c_str (), NULL, 10));
|
||||
}
|
||||
else
|
||||
{
|
||||
if (dep.length () == 36)
|
||||
addDependency (context.tdb2.pending.id (dep));
|
||||
addDependency (dep);
|
||||
else
|
||||
addDependency (strtol (dep.c_str (), NULL, 10));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue