Commit 8bd6f1d2 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Don't set a dependency to itself.

parent d894e35f
......@@ -200,8 +200,7 @@ class TodoList(object):
from_todo = self.todo(p_number1)
to_todo = self.todo(p_number2)
if not self._depgraph.has_edge(hash(from_todo), hash(to_todo)):
if p_number1 != p_number2 and not self._depgraph.has_edge(hash(from_todo), hash(to_todo)):
if not from_todo or not to_todo:
return
......
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