From 3d5a5e4d86ba840d9ecf4ecffc48c755364947de Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Fri, 1 Jan 2021 15:08:11 +0100 Subject: [PATCH] Selecting outline item should also select it in project tree --- nw/gui/outline.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nw/gui/outline.py b/nw/gui/outline.py index 4238cc44..75aa9dc2 100644 --- a/nw/gui/outline.py +++ b/nw/gui/outline.py @@ -227,6 +227,7 @@ class GuiOutline(QTreeWidget): tHandle = selItems[0].data(self.colIndex[nwOutline.TITLE], Qt.UserRole) sTitle = selItems[0].data(self.colIndex[nwOutline.LINE], Qt.UserRole) self.theParent.projMeta.showItem(tHandle, sTitle) + self.theParent.treeView.setSelectedHandle(tHandle) return