Make sure document edit status is not set on non-text changes

This commit is contained in:
Veronica K. B. Olsen
2021-01-09 19:53:42 +01:00
parent 927dad4ff5
commit 7c643ea698
2 changed files with 17 additions and 2 deletions
+7
View File
@@ -432,6 +432,7 @@ class GuiMain(QMainWindow):
# Restore previously open documents, if any
if self.theProject.lastEdited is not None:
self.openDocument(self.theProject.lastEdited, doScroll=True)
if self.theProject.lastViewed is not None:
self.viewDocument(self.theProject.lastViewed)
@@ -439,6 +440,12 @@ class GuiMain(QMainWindow):
if self.theIndex.indexBroken:
self.rebuildIndex()
# Make sure the changed status is set to false on all that was
# just opened
qApp.processEvents()
self.docEditor.setDocumentChanged(False)
self.theProject.setProjectChanged(False)
logger.debug("Project load complete")
return True