Fix build to exclude archived files

This commit is contained in:
Veronica K. B. Olsen
2020-08-16 17:39:18 +02:00
parent 68a7dd4390
commit cc3c938e16
2 changed files with 14 additions and 0 deletions
+2
View File
@@ -478,6 +478,7 @@ class GuiBuildNovel(QDialog):
noteRoot = noteFiles
noteRoot &= tItem.itemType == nwItemType.ROOT
noteRoot &= tItem.itemClass != nwItemClass.NOVEL
noteRoot &= tItem.itemClass != nwItemClass.ARCHIVE
try:
if noteRoot:
@@ -551,6 +552,7 @@ class GuiBuildNovel(QDialog):
isNone |= theItem.itemClass == nwItemClass.NO_CLASS
isNone |= theItem.itemClass == nwItemClass.TRASH
isNone |= theItem.parHandle == self.theProject.projTree.trashRoot()
isNone |= theItem.parHandle == self.theProject.projTree.archiveRoot()
isNone |= theItem.parHandle is None
isNote = theItem.itemLayout == nwItemLayout.NOTE
isNovel = not isNone and not isNote