Fix a minor issue in the outline details class
This commit is contained in:
@@ -274,7 +274,7 @@ class GuiOutlineDetails(QScrollArea):
|
|||||||
nwItem = self.theProject.projTree[tHandle]
|
nwItem = self.theProject.projTree[tHandle]
|
||||||
novIdx = self.theIndex.getNovelData(tHandle, sTitle)
|
novIdx = self.theIndex.getNovelData(tHandle, sTitle)
|
||||||
theRefs = self.theIndex.getReferences(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
|
return False
|
||||||
|
|
||||||
if novIdx["level"] in self.LVL_MAP:
|
if novIdx["level"] in self.LVL_MAP:
|
||||||
@@ -328,7 +328,7 @@ class GuiOutlineDetails(QScrollArea):
|
|||||||
def _formatTags(self, theRefs, theKey):
|
def _formatTags(self, theRefs, theKey):
|
||||||
"""Format the tags as clickable links.
|
"""Format the tags as clickable links.
|
||||||
"""
|
"""
|
||||||
if theKey not in theKey:
|
if theKey not in theRefs:
|
||||||
return ""
|
return ""
|
||||||
refTags = []
|
refTags = []
|
||||||
for tTag in theRefs[theKey]:
|
for tTag in theRefs[theKey]:
|
||||||
|
|||||||
Reference in New Issue
Block a user