From 1b05e8ddc95732fd768f2b1ecbd0383b75cae160 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Thu, 28 Jan 2021 21:26:51 +0100 Subject: [PATCH] Save current document before building project --- nw/gui/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)