Should set hasProject to true ass soon as it is opened
This commit is contained in:
+3
-1
@@ -239,6 +239,9 @@ class GuiMain(QMainWindow):
|
|||||||
if not self.theProject.openProject(projFile):
|
if not self.theProject.openProject(projFile):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
# project is loaded
|
||||||
|
self.hasProject = True
|
||||||
|
|
||||||
# Load the tag index
|
# Load the tag index
|
||||||
self.theIndex.loadIndex()
|
self.theIndex.loadIndex()
|
||||||
|
|
||||||
@@ -249,7 +252,6 @@ class GuiMain(QMainWindow):
|
|||||||
self.docEditor.setSpellCheck(self.theProject.spellCheck)
|
self.docEditor.setSpellCheck(self.theProject.spellCheck)
|
||||||
self.statusBar.setRefTime(self.theProject.projOpened)
|
self.statusBar.setRefTime(self.theProject.projOpened)
|
||||||
self.mainMenu.updateMenu()
|
self.mainMenu.updateMenu()
|
||||||
self.hasProject = True
|
|
||||||
|
|
||||||
# Restore previously open documents, if any
|
# Restore previously open documents, if any
|
||||||
if self.theProject.lastEdited is not None:
|
if self.theProject.lastEdited is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user