Commit cf57b932 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Be smarter in maintaining dependencies upon todo removal

parent 26309f6e
...@@ -129,10 +129,11 @@ class TodoList(TodoListBase): ...@@ -129,10 +129,11 @@ class TodoList(TodoListBase):
try: try:
number = self._todos.index(p_todo) number = self._todos.index(p_todo)
if p_todo.has_tag('p') or p_todo.has_tag('id'): if p_todo.has_tag('id'):
for child in self.children(p_todo): for child in self.children(p_todo):
self.remove_dependency(p_todo, child) self.remove_dependency(p_todo, child)
if p_todo.has_tag('p'):
for parent in self.parents(p_todo): for parent in self.parents(p_todo):
self.remove_dependency(parent, p_todo) self.remove_dependency(parent, p_todo)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment