Merge branch 'main' into dev

This commit is contained in:
Veronica K. B. Olsen
2021-02-06 14:03:22 +01:00
9 changed files with 71 additions and 56 deletions
+2 -3
View File
@@ -417,9 +417,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)
@@ -2004,6 +2002,7 @@ class GuiDocEditSearch(QFrame):
if theText is not None:
self.searchBox.setText(theText)
self.searchBox.setFocus()
self.searchBox.selectAll()
if self.isRegEx:
self._alertSearchValid(True)
logger.verbose("Setting search text to '%s'" % theText)