Merge branch 'master' into project_outline
This commit is contained in:
+3
-3
@@ -400,7 +400,7 @@ class GuiMain(QMainWindow):
|
||||
|
||||
return True
|
||||
|
||||
def saveProject(self):
|
||||
def saveProject(self, autoSave=False):
|
||||
"""Save the current project.
|
||||
"""
|
||||
if not self.hasProject:
|
||||
@@ -414,7 +414,7 @@ class GuiMain(QMainWindow):
|
||||
return False
|
||||
|
||||
self.treeView.saveTreeOrder()
|
||||
self.theProject.saveProject()
|
||||
self.theProject.saveProject(autoSave)
|
||||
self.theIndex.saveIndex()
|
||||
|
||||
return True
|
||||
@@ -916,7 +916,7 @@ class GuiMain(QMainWindow):
|
||||
if (self.hasProject and self.theProject.projChanged and
|
||||
self.theProject.projPath is not None):
|
||||
logger.debug("Autosaving project")
|
||||
self.saveProject()
|
||||
self.saveProject(autoSave=True)
|
||||
return
|
||||
|
||||
def _autoSaveDocument(self):
|
||||
|
||||
Reference in New Issue
Block a user