Improved tree builing logic to handle out of order items from project file

This commit is contained in:
Veronica K. B. Olsen
2019-05-19 00:13:03 +02:00
parent 0b7511f9a5
commit 33fe71ae62
3 changed files with 38 additions and 3 deletions
+1 -2
View File
@@ -296,8 +296,7 @@ class GuiDocTree(QTreeWidget):
def buildTree(self):
self.clear()
for tHandle in self.theProject.treeOrder:
nwItem = self.theProject.projTree[tHandle]
for nwItem in self.theProject.getProjectItems():
self._addTreeItem(nwItem)
return True