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 ##