diff --git a/nw/gui/build.py b/nw/gui/build.py index c24edb3e..73d20e3f 100644 --- a/nw/gui/build.py +++ b/nw/gui/build.py @@ -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)