Skip to content

Commit

Permalink
Fix: Removing items from the tree
Browse files Browse the repository at this point in the history
  • Loading branch information
Futsch1 committed Aug 20, 2023
1 parent 00c7756 commit 4ffc0a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asn1editor/wxPython/TreeView.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __delete_if_removed(self, container_item_for_view: wx.TreeItemId, views: typ

while tree_child.IsOk():
current_child_views_in_tree.append((self.__tree_ctrl.GetItemData(tree_child), tree_child))
tree_child, cookie = self.__tree_ctrl.GetNextChild(tree_child, cookie)
tree_child, cookie = self.__tree_ctrl.GetNextChild(container_item_for_view, cookie)

for current_child, current_treeitem in current_child_views_in_tree:
if current_child not in views:
Expand Down

0 comments on commit 4ffc0a2

Please sign in to comment.