Improve project tree iterator

This commit is contained in:
Veronica Berglyd Olsen
2022-11-15 21:49:15 +01:00
parent 7ce2fd29a6
commit a15d25370e
3 changed files with 18 additions and 37 deletions
+1 -1
View File
@@ -628,7 +628,7 @@ class GuiMain(QMainWindow):
fHandle = None # The first file handle we encounter
foundIt = False # We've found tHandle, pick the next we see
for tItem in self.theProject.tree:
if tItem is None or not tItem.isFileType():
if not tItem.isFileType():
continue
if fHandle is None:
fHandle = tItem.itemHandle