diff --git a/nw/guimain.py b/nw/guimain.py index 300c00a7..af4ac35b 100644 --- a/nw/guimain.py +++ b/nw/guimain.py @@ -371,9 +371,9 @@ class GuiMain(QMainWindow): logger.info("Creating new project") if self.theProject.newProject(projData): + self.hasProject = True self.rebuildTrees() self.saveProject() - self.hasProject = True self.docEditor.setDictionaries() self.rebuildIndex(beQuiet=True) self.statusBar.setRefTime(self.theProject.projOpened)