Add editorDocumentChanged signal in GuiDocEditor

This commit is contained in:
Veronica K. B. Olsen
2021-05-16 00:41:44 +02:00
parent 24ab6f2d3b
commit 4ce8b38acd
3 changed files with 42 additions and 34 deletions
+2 -1
View File
@@ -121,6 +121,7 @@ class GuiMain(QMainWindow):
# Signals Between Main Elements
self.docEditor.spellDictionaryChanged.connect(self.statusBar.setLanguage)
self.docEditor.editorDocumentChanged.connect(self.statusBar.updateDocumentStatus)
# Minor GUI Elements
self.statusIcons = []
@@ -381,7 +382,7 @@ class GuiMain(QMainWindow):
self.rebuildIndex(beQuiet=True)
self.statusBar.setRefTime(self.theProject.projOpened)
self.statusBar.setProjectStatus(True)
self.statusBar.setDocumentStatus(None)
self.statusBar.updateDocumentStatus(None)
self.statusBar.setStatus(self.tr("New project created ..."))
self._updateWindowTitle(self.theProject.projName)
else: