diff --git a/GTG/gtk/browser/task_pane.py b/GTG/gtk/browser/task_pane.py index 58767af7d..a58308b05 100644 --- a/GTG/gtk/browser/task_pane.py +++ b/GTG/gtk/browser/task_pane.py @@ -613,7 +613,10 @@ def drop_enter(self, target, x, y, user_data=None): def check_parent(self, value, target) -> bool: - """Check to parenting a parent to its own children""" + """Check for parenting a task to its own descendant or to itself.""" + + if value == target: + return False item = target while item.parent: