From 89ee9c7bf436bc54124a0a4349b373c08b1f3f0b Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" Date: Wed, 12 Jun 2019 21:03:28 +0200 Subject: [PATCH] Should set hasProject to true ass soon as it is opened --- nw/gui/winmain.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nw/gui/winmain.py b/nw/gui/winmain.py index b46d9c2a..6784609a 100644 --- a/nw/gui/winmain.py +++ b/nw/gui/winmain.py @@ -239,6 +239,9 @@ class GuiMain(QMainWindow): if not self.theProject.openProject(projFile): return False + # project is loaded + self.hasProject = True + # Load the tag index self.theIndex.loadIndex() @@ -249,7 +252,6 @@ class GuiMain(QMainWindow): self.docEditor.setSpellCheck(self.theProject.spellCheck) self.statusBar.setRefTime(self.theProject.projOpened) self.mainMenu.updateMenu() - self.hasProject = True # Restore previously open documents, if any if self.theProject.lastEdited is not None: