Restructure the record of root items in the tree class

This commit is contained in:
Veronica Berglyd Olsen committed 2022-04-02 19:13:54 +02:00
1 parent 8ddda4783d
commit f9ddcd2f8a
7 files changed
+66 -33

No files matched your search

+1 -2
View File
@@ -799,8 +799,7 @@ class GuiBuildNovel(QDialog):
if isNovel and not novelFiles:
return False
rootItem = self.theProject.projTree.getRootItem(theItem.itemHandle)
if rootItem.itemClass == nwItemClass.ARCHIVE:
if self.theProject.projTree.getItemClass(theItem.itemHandle) == nwItemClass.ARCHIVE:
return False
return True