mirror of
https://github.com/wassname/sloth.git
synced 2026-07-17 11:33:03 +08:00
Fix saving of annotations
This commit is contained in:
@@ -446,7 +446,7 @@ class ImageFileModelItem(FileModelItem, ImageModelItem):
|
||||
return FileModelItem.data(self, role, column)
|
||||
|
||||
def getAnnotations(self):
|
||||
self._ensureLoaded()
|
||||
self._ensureAllLoaded()
|
||||
fi = KeyValueModelItem.getAnnotations(self)
|
||||
fi['annotations'] = [child.getAnnotations() for child in self.children()]
|
||||
return fi
|
||||
|
||||
Reference in New Issue
Block a user