Make some improvements to the tree consistency check

This commit is contained in:
Veronica Berglyd Olsen
2023-07-22 01:06:04 +02:00
parent 3753f5b829
commit d382775d1d
2 changed files with 14 additions and 12 deletions
+4 -5
View File
@@ -1046,13 +1046,12 @@ class GuiProjectTree(QTreeWidget):
"""
logger.debug("Building the project tree ...")
self.clearTree()
iCount = 0
count = 0
for nwItem in self.theProject.getProjectItems():
iCount += 1
count += 1
self._addTreeItem(nwItem)
logger.debug("%d item(s) added to the project tree", iCount)
if count > 0:
logger.info("%d item(s) added to the project tree", count)
return
def undoLastMove(self):