From 3d22943dbf3f1f5902e02b84f843c70144d35315 Mon Sep 17 00:00:00 2001 From: Mika Fischer Date: Fri, 22 Jul 2011 14:31:26 +0200 Subject: [PATCH] Fix saving of annotations --- sloth/annotations/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sloth/annotations/model.py b/sloth/annotations/model.py index 67dceda..bb1f016 100644 --- a/sloth/annotations/model.py +++ b/sloth/annotations/model.py @@ -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