Merge branch 'main' into dev
This commit is contained in:
+2
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user