Skip to content

Commit

Permalink
Fix double listing of the iRODS root
Browse files Browse the repository at this point in the history
  • Loading branch information
chStaiger committed Jun 21, 2024
1 parent 0d9f69b commit ff7ec50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ibridgesgui/irods_tree_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ def add_subtree(self, tree_item, tree_item_data: list):
# we assume that tree_item has no children yet.
new_nodes = {}
for item in subcolls + dataobjs:
# the irods root also contains the irods root as subcollection
if item.path == '/':
continue
row = self._tree_row_from_irods_item(item, parent_coll.id, int(level))
tree_item.appendRow(row)
new_nodes[item.id] = tree_item.child(tree_item.rowCount() - 1)
Expand Down

0 comments on commit ff7ec50

Please sign in to comment.