From c3ea32a16577364b1c79a92a3141fa45108d92b6 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sat, 30 Dec 2023 00:01:12 +0100 Subject: [PATCH] Add back in focus switch to ensure #1376 remains resolved --- novelwriter/gui/projtree.py | 1 + 1 file changed, 1 insertion(+) diff --git a/novelwriter/gui/projtree.py b/novelwriter/gui/projtree.py index ad5f0a73..d90ef12c 100644 --- a/novelwriter/gui/projtree.py +++ b/novelwriter/gui/projtree.py @@ -680,6 +680,7 @@ class GuiProjectTree(QTreeWidget): # Add the new item to the project tree self.revealNewTreeItem(tHandle, nHandle=nHandle, wordCount=True) + self.projView.setTreeFocus() # See issue #1376 return True