Merge pull request #616 from vkbo/issue610_save_doc_on_build

Issue #610: Save document before build
This commit is contained in:
Veronica K. Berglyd Olsen
2021-01-28 20:33:20 +00:00
committed by GitHub
+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)