Delegate responsibility for the index to the project class

This commit is contained in:
Veronica Berglyd Olsen
2022-11-01 22:32:29 +01:00
parent e85bd56f60
commit 717d516f6a
3 changed files with 61 additions and 59 deletions
+1 -6
View File
@@ -443,7 +443,6 @@ class GuiMain(QMainWindow):
self.idleRefTime = time()
self.idleTime = 0.0
self.theProject.index.clearIndex()
self.clearGUI()
self.hasProject = False
self._changeView(nwView.PROJECT)
@@ -519,9 +518,6 @@ class GuiMain(QMainWindow):
self.idleRefTime = time()
self.idleTime = 0.0
# Load the tag index
self.theProject.index.loadIndex()
# Update GUI
self._updateWindowTitle(self.theProject.data.name)
self.rebuildTrees()
@@ -573,8 +569,7 @@ class GuiMain(QMainWindow):
return False
self.projView.saveProjectTasks()
if self.theProject.saveProject(autoSave=autoSave):
self.theProject.index.saveIndex()
self.theProject.saveProject(autoSave=autoSave)
return True