Skip to content

Commit 2d53a2c

Browse files
FIX: show expand indicator when item only have children that are not tasks (#204)
1 parent 7abb232 commit 2d53a2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/tk_multi_publish2/publish_tree_widget/publish_tree_widget.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,13 @@ def _build_item_tree_r(self, item, checked, level, tree_parent):
152152
ui_task = TreeNodeTask(task, ui_item)
153153
self.__created_items.append(ui_task)
154154

155+
for child in item.children:
156+
self._build_item_tree_r(child, checked, level + 1, ui_item)
157+
155158
# ensure the expand indicator is shown/hidden depending on child
156159
# visibility
157160
ui_item.update_expand_indicator()
158161

159-
for child in item.children:
160-
self._build_item_tree_r(child, checked, level + 1, ui_item)
161-
162162
# lastly, handle the item level check state.
163163
# if the item has been marked as checked=False
164164
# uncheck it now (which will affect all children)

0 commit comments

Comments
 (0)