Added better tracking of document and project changes and added coloured icons for the status bar

This commit is contained in:
Veronica K. B. Olsen
2019-05-05 01:02:04 +02:00
parent 9565b14d8b
commit 971d8a9a59
5 changed files with 68 additions and 21 deletions
+2 -2
View File
@@ -186,7 +186,7 @@ class GuiMain(QMainWindow):
self.theDocument.theItem.setWordCount(self.docEditor.wordCount)
self.theDocument.theItem.setParaCount(self.docEditor.paraCount)
self.theDocument.saveDocument(docHtml)
self.docEditor.theDoc.setModified(False)
self.docEditor.setDocumentChanged(False)
return
##
@@ -311,7 +311,7 @@ class GuiMain(QMainWindow):
return False
if self.theDocument.theItem is None:
return False
if not self.docEditor.theDoc.isModified():
if not self.docEditor.docChanged:
return False
return True