Set the proper location to rebuild a broken index

This commit is contained in:
Veronica K. B. Olsen
2019-11-02 11:59:20 +01:00
parent 93f3e01365
commit 2af6caa527
+4
View File
@@ -307,6 +307,10 @@ class GuiMain(QMainWindow):
if self.theProject.lastViewed is not None:
self.viewDocument(self.theProject.lastViewed)
# Check if we need to rebuild the index
if self.theIndex.indexBroken:
self.rebuildIndex()
return True
def saveProject(self):