Let the main gui handle the novel tree refresh decision

This commit is contained in:
Veronica K. B. Olsen
2021-02-02 16:36:19 +01:00
parent 2cb51f5b58
commit 5654170278
3 changed files with 11 additions and 4 deletions
+1 -3
View File
@@ -416,9 +416,7 @@ class GuiDocEditor(QTextEdit):
self.theIndex.scanText(tHandle, docText)
if self._updateHeaders(checkLevel=True):
if self.theParent.projTabs.currentIndex() == self.theParent.idxNovelView:
logger.verbose("Document headers have changed, updating novel tree")
self.theParent.novelView.refreshTree()
self.theParent.requestNovelTreeRefresh()
else:
self.theParent.novelView.updateWordCounts(tHandle)