Fixed issue with following tag link when doc viewer is closed.

This commit is contained in:
Veronica K. B. Olsen
2020-06-11 18:02:23 +02:00
parent 9671db0b42
commit 20ff46b8d2
2 changed files with 4 additions and 2 deletions
+4 -1
View File
@@ -188,7 +188,10 @@ class GuiDocViewer(QTextBrowser):
) % theTag, nwAlert.ERROR)
return
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))
return True