Should set hasProject to true ass soon as it is opened

This commit is contained in:
Veronica K. B. Olsen
2019-06-12 21:03:28 +02:00
parent 5c9e213a8f
commit 89ee9c7bf4
+3 -1
View File
@@ -239,6 +239,9 @@ class GuiMain(QMainWindow):
if not self.theProject.openProject(projFile):
return False
# project is loaded
self.hasProject = True
# Load the tag index
self.theIndex.loadIndex()
@@ -249,7 +252,6 @@ class GuiMain(QMainWindow):
self.docEditor.setSpellCheck(self.theProject.spellCheck)
self.statusBar.setRefTime(self.theProject.projOpened)
self.mainMenu.updateMenu()
self.hasProject = True
# Restore previously open documents, if any
if self.theProject.lastEdited is not None: