Skip to content

Commit

Permalink
Merge master into fix_unmonitor_finished_jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonfigueiredo committed Sep 27, 2023
1 parent 9064c33 commit 8173d3b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cuegui/cuegui/AbstractTreeWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,7 @@ def _removeItem(self, item):
self.takeTopLevelItem(self.indexOfTopLevelItem(item))
objectClass = item.rpcObject.__class__.__name__
objectId = item.rpcObject.id()

# Check if object ID exists before delete it
if objectId in self._items:
del self._items['{}.{}'.format(objectClass, objectId)]
del self._items['{}.{}'.format(objectClass, objectId)]

def removeAllItems(self):
"""Removes all items from the tree."""
Expand Down

0 comments on commit 8173d3b

Please sign in to comment.