mirror of
https://github.com/wassname/sloth.git
synced 2026-07-22 13:00:25 +08:00
fix updating of model
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user