diff --git a/spyder_profiler/widgets/profilergui.py b/spyder_profiler/widgets/profilergui.py index eefc4666e8b..e92ad4d7122 100644 --- a/spyder_profiler/widgets/profilergui.py +++ b/spyder_profiler/widgets/profilergui.py @@ -661,8 +661,8 @@ def is_recursive(self, child_item): while ancestor: if (child_item.data(0, Qt.DisplayRole ) == ancestor.data(0, Qt.DisplayRole) and - child_item.data(4, Qt.DisplayRole - ) == ancestor.data(4, Qt.DisplayRole)): + child_item.data(7, Qt.DisplayRole + ) == ancestor.data(7, Qt.DisplayRole)): return True else: ancestor = ancestor.parent()