From 911f53419a17a1107291298836bbcda695b385bd Mon Sep 17 00:00:00 2001 From: Martin Baeuml Date: Wed, 25 May 2011 01:02:55 +0200 Subject: [PATCH] fix updating of model --- 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 192030b..3a218fd 100644 --- a/sloth/annotations/model.py +++ b/sloth/annotations/model.py @@ -50,7 +50,7 @@ class RootModelItem(ModelItem): def addFile(self, file): fmi = FileModelItem.create(self.model(), file, self) next = len(self.children_) - index = self.model().index(0, 0, QModelIndex()) + index = QModelIndex() self.model().beginInsertRows(index, next, next) self.children_.append(fmi) self.files_.append(file)