Cleaned up the way navigation is done in the document viewer

This commit is contained in:
Veronica K. B. Olsen
2020-09-08 18:19:22 +02:00
parent 82b064fe37
commit 6ebc4ca268
3 changed files with 17 additions and 13 deletions
+2 -2
View File
@@ -525,7 +525,7 @@ class GuiMain(QMainWindow):
self.docEditor.saveText()
return True
def viewDocument(self, tHandle=None, navLink=None):
def viewDocument(self, tHandle=None, tAnchor=None):
"""Load a document for viewing in the view panel.
"""
if tHandle is None:
@@ -562,7 +562,7 @@ class GuiMain(QMainWindow):
vPos[1] = bPos[1] - vPos[0]
self.splitDocs.setSizes(vPos)
self.viewMeta.setVisible(self.mainConf.showRefPanel)
self.docViewer.navigateTo(navLink)
self.docViewer.navigateTo(tAnchor)
return True