diff --git a/cuegui/cuegui/AbstractTreeWidget.py b/cuegui/cuegui/AbstractTreeWidget.py index a879ffefa..0f4e9500a 100644 --- a/cuegui/cuegui/AbstractTreeWidget.py +++ b/cuegui/cuegui/AbstractTreeWidget.py @@ -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."""