From 76fcc7434251f10164bbe964c8641e83f164bf33 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sat, 8 Aug 2020 18:27:16 +0200 Subject: [PATCH] Make writing stats and buid dialogs non-modal --- nw/guimain.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nw/guimain.py b/nw/guimain.py index f4dc33d8..3768fc3c 100644 --- a/nw/guimain.py +++ b/nw/guimain.py @@ -803,16 +803,18 @@ class GuiMain(QMainWindow): """Open the build project dialog. """ if self.hasProject: - dlgExport = GuiBuildNovel(self, self.theProject) - dlgExport.exec_() + dlgBuild = GuiBuildNovel(self, self.theProject) + dlgBuild.setModal(False) + dlgBuild.show() return True def showWritingStatsDialog(self): """Open the session log dialog. """ if self.hasProject: - dlgTLine = GuiWritingStats(self, self.theProject) - dlgTLine.exec_() + dlgStats = GuiWritingStats(self, self.theProject) + dlgStats.setModal(False) + dlgStats.show() return True def makeAlert(self, theMessage, theLevel=nwAlert.INFO):