Save current document before building project

This commit is contained in:
Veronica K. B. Olsen
2021-01-28 21:26:51 +01:00
parent 4745877a63
commit 1b05e8ddc9
+2 -1
View File
@@ -571,8 +571,9 @@ class GuiBuildNovel(QDialog):
makeHtml.setJustify(justifyText)
makeHtml.setStyles(not noStyling)
# Make sure the tree order is correct
# Make sure the project and document is up to date
self.theParent.treeView.flushTreeOrder()
self.theParent.saveDocument()
self.buildProgress.setMaximum(len(self.theProject.projTree))
self.buildProgress.setValue(0)