Fix a minor issue in the outline details class

This commit is contained in:
Veronica K. B. Olsen
2021-01-02 22:34:52 +01:00
parent 1bdf0b5500
commit 0b7e4d594e
+2 -2
View File
@@ -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]: