From 0b7e4d594ed4134baba549659be308f1ddff7ac8 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sat, 2 Jan 2021 22:34:52 +0100 Subject: [PATCH] Fix a minor issue in the outline details class --- nw/gui/outlinedetails.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nw/gui/outlinedetails.py b/nw/gui/outlinedetails.py index 5e1d1105..ea9ec9f4 100644 --- a/nw/gui/outlinedetails.py +++ b/nw/gui/outlinedetails.py @@ -274,7 +274,7 @@ class GuiOutlineDetails(QScrollArea): nwItem = self.theProject.projTree[tHandle] novIdx = self.theIndex.getNovelData(tHandle, sTitle) theRefs = self.theIndex.getReferences(tHandle, sTitle) - if nwItem is None or novIdx is None or theRefs == {}: + if nwItem is None or novIdx is None: return False if novIdx["level"] in self.LVL_MAP: @@ -328,7 +328,7 @@ class GuiOutlineDetails(QScrollArea): def _formatTags(self, theRefs, theKey): """Format the tags as clickable links. """ - if theKey not in theKey: + if theKey not in theRefs: return "" refTags = [] for tTag in theRefs[theKey]: