From 2ed9f117165b4c79248aeb8d383d23620442da30 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" Date: Fri, 3 May 2019 21:59:49 +0200 Subject: [PATCH] Fixed the save button of project settings dialog, and setting the window title after saving settings --- nw/gui/projecteditor.py | 1 + nw/gui/winmain.py | 1 + 2 files changed, 2 insertions(+) diff --git a/nw/gui/projecteditor.py b/nw/gui/projecteditor.py index e594c1a3..38d74851 100644 --- a/nw/gui/projecteditor.py +++ b/nw/gui/projecteditor.py @@ -86,6 +86,7 @@ class GuiProjectEditor(QDialog): self.theProject.setProjectName(projName) self.theProject.setBookTitle(bookTitle) self.theProject.setBookAuthors(bookAuthors) + self.close() return def _doClose(self): diff --git a/nw/gui/winmain.py b/nw/gui/winmain.py index 8d8a8261..22c71a1a 100644 --- a/nw/gui/winmain.py +++ b/nw/gui/winmain.py @@ -206,6 +206,7 @@ class GuiMain(QMainWindow): def editProjectDialog(self): dlgProj = GuiProjectEditor(self, self.theProject) dlgProj.exec_() + self._setWindowTitle(self.theProject.projName) return True ##