Fixed issue with following tag link when doc viewer is closed.
This commit is contained in:
+4
-1
@@ -188,7 +188,10 @@ class GuiDocViewer(QTextBrowser):
|
|||||||
) % theTag, nwAlert.ERROR)
|
) % theTag, nwAlert.ERROR)
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
self.loadText(tHandle)
|
# Let the parent handle the opening as it also ensures that
|
||||||
|
# the doc view panel is visible in case this request comes
|
||||||
|
# from outside this class.
|
||||||
|
self.theParent.viewDocument(tHandle)
|
||||||
self.navigateTo("#head_%s:%s" % (tHandle, sTitle))
|
self.navigateTo("#head_%s:%s" % (tHandle, sTitle))
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
@@ -277,7 +277,6 @@ class GuiOutlineDetails(QScrollArea):
|
|||||||
theBits = theLink.split("=")
|
theBits = theLink.split("=")
|
||||||
if len(theBits) == 2:
|
if len(theBits) == 2:
|
||||||
self.theParent.docViewer.loadFromTag(theBits[1])
|
self.theParent.docViewer.loadFromTag(theBits[1])
|
||||||
self.theParent.tabWidget.setCurrentWidget(self.theParent.splitView)
|
|
||||||
return
|
return
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|||||||
Reference in New Issue
Block a user