Make sure information is synced properly when item label is changed

This commit is contained in:
Veronica K. B. Olsen
2020-05-09 21:49:05 +02:00
parent 91dd15ab57
commit 1ad156054c
5 changed files with 24 additions and 5 deletions
+8
View File
@@ -192,6 +192,14 @@ class GuiDocViewer(QTextBrowser):
return False
return True
def updateDocTitle(self, tHandle):
"""Called when an item label is changed to check if the document
title bar needs updating,
"""
if tHandle == self.theHandle:
self.docTitle.setTitleFromHandle(self.theHandle)
return
##
# Events
##