Make writing stats and buid dialogs non-modal

This commit is contained in:
Veronica K. B. Olsen
2020-08-08 18:27:16 +02:00
parent 1abff1e816
commit 76fcc74342
+6 -4
View File
@@ -803,16 +803,18 @@ class GuiMain(QMainWindow):
"""Open the build project dialog. """Open the build project dialog.
""" """
if self.hasProject: if self.hasProject:
dlgExport = GuiBuildNovel(self, self.theProject) dlgBuild = GuiBuildNovel(self, self.theProject)
dlgExport.exec_() dlgBuild.setModal(False)
dlgBuild.show()
return True return True
def showWritingStatsDialog(self): def showWritingStatsDialog(self):
"""Open the session log dialog. """Open the session log dialog.
""" """
if self.hasProject: if self.hasProject:
dlgTLine = GuiWritingStats(self, self.theProject) dlgStats = GuiWritingStats(self, self.theProject)
dlgTLine.exec_() dlgStats.setModal(False)
dlgStats.show()
return True return True
def makeAlert(self, theMessage, theLevel=nwAlert.INFO): def makeAlert(self, theMessage, theLevel=nwAlert.INFO):