Backport a small fix from the dev branch

This commit is contained in:
Veronica K. B. Olsen
2021-02-01 23:24:02 +01:00
parent 6c7c8b43b9
commit 2cb51f5b58
+3 -1
View File
@@ -416,7 +416,9 @@ class GuiDocEditor(QTextEdit):
self.theIndex.scanText(tHandle, docText)
if self._updateHeaders(checkLevel=True):
self.theParent.novelView.refreshTree()
if self.theParent.projTabs.currentIndex() == self.theParent.idxNovelView:
logger.verbose("Document headers have changed, updating novel tree")
self.theParent.novelView.refreshTree()
else:
self.theParent.novelView.updateWordCounts(tHandle)