Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cuegui] Bug fix when unmonitor finished jobs with dependents #1316

Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cuegui/cuegui/AbstractTreeWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,10 @@ def _removeItem(self, item):
self.takeTopLevelItem(self.indexOfTopLevelItem(item))
objectClass = item.rpcObject.__class__.__name__
objectId = item.rpcObject.id()
del self._items['{}.{}'.format(objectClass, objectId)]

# Check if object ID exists before delete it
if objectId in self._items:
del self._items['{}.{}'.format(objectClass, objectId)]
ramonfigueiredo marked this conversation as resolved.
Show resolved Hide resolved

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