Make some minor code fixes

This commit is contained in:
Veronica Berglyd Olsen
2022-11-10 17:04:12 +01:00
parent bbc5be0075
commit f556fde848
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -77,7 +77,6 @@ class GuiProjectLoad(QDialog):
self.setWindowTitle(self.tr("Open Project"))
self.setMinimumWidth(self.mainConf.pxInt(650))
self.setMinimumHeight(self.mainConf.pxInt(400))
self.setModal(True)
self.nwIcon = QLabel()
self.nwIcon.setPixmap(self.mainGui.mainTheme.getPixmap("novelwriter", (nPx, nPx)))
+1
View File
@@ -872,6 +872,7 @@ class GuiMain(QMainWindow):
"""
dlgProj = GuiProjectLoad(self)
dlgProj.exec_()
if dlgProj.result() == QDialog.Accepted:
if dlgProj.openState == GuiProjectLoad.OPEN_STATE:
self.openProject(dlgProj.openPath)