Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Commit c793e29

Browse files
authored
Merge pull request #69 from pypeclub/hotfix/PYPE-501_fix_crashing_bugs
Hotfix/PYPE-501-fix-crashing-bugs
2 parents cf3bf2d + a006ba3 commit c793e29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

avalon/tools/gui/delegates/delegate_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def displayText(self, value, locale):
1919
return self._format_version(value)
2020

2121
def createEditor(self, parent, option, index):
22-
node = index.data(SubsetsModel.NodeRole)
22+
node = index.data(SubsetModel.NodeRole)
2323
if node.get("isGroup"):
2424
return
2525

@@ -48,7 +48,7 @@ def setEditorData(self, editor, index):
4848
assert isinstance(value, int), "Version is not `int`"
4949

5050
# Add all available versions to the editor
51-
node = index.data(SubsetsModel.NodeRole)
51+
node = index.data(SubsetModel.NodeRole)
5252
parent_id = node['version_document']['parent']
5353
versions = io.find({"type": "version", "parent": parent_id},
5454
sort=[("name", 1)])

0 commit comments

Comments
 (0)