From f605f1fc75a2202540a4e041215a7e2c4ca74b0a Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Thu, 6 May 2021 22:02:59 +0200 Subject: [PATCH] Solve an unwante error message when creating a new project --- nw/guimain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)