Skip to content

Commit

Permalink
Add support for previous database data
Browse files Browse the repository at this point in the history
  • Loading branch information
krathjen committed Sep 1, 2019
1 parent 804f2b9 commit 5f55c95
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/studiolibrary/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,12 @@ def createItems(self):
item.setItemData(data[path])
self._items.append(item)
else:
msg = 'No "__class__" field found for "{0}"'
msg = msg.format(path)
logger.debug(msg)
# This is to support the older database data before v2.6.
# Will remove in a later version.
item = self.itemFromPath(path, library=self, libraryWindow=self._libraryWindow)
if item:
item.setItemData(data[path])
self._items.append(item)

return self._items

Expand Down

0 comments on commit 5f55c95

Please sign in to comment.