Make some minor code fixes
This commit is contained in:
@@ -77,7 +77,6 @@ class GuiProjectLoad(QDialog):
|
|||||||
self.setWindowTitle(self.tr("Open Project"))
|
self.setWindowTitle(self.tr("Open Project"))
|
||||||
self.setMinimumWidth(self.mainConf.pxInt(650))
|
self.setMinimumWidth(self.mainConf.pxInt(650))
|
||||||
self.setMinimumHeight(self.mainConf.pxInt(400))
|
self.setMinimumHeight(self.mainConf.pxInt(400))
|
||||||
self.setModal(True)
|
|
||||||
|
|
||||||
self.nwIcon = QLabel()
|
self.nwIcon = QLabel()
|
||||||
self.nwIcon.setPixmap(self.mainGui.mainTheme.getPixmap("novelwriter", (nPx, nPx)))
|
self.nwIcon.setPixmap(self.mainGui.mainTheme.getPixmap("novelwriter", (nPx, nPx)))
|
||||||
|
|||||||
@@ -872,6 +872,7 @@ class GuiMain(QMainWindow):
|
|||||||
"""
|
"""
|
||||||
dlgProj = GuiProjectLoad(self)
|
dlgProj = GuiProjectLoad(self)
|
||||||
dlgProj.exec_()
|
dlgProj.exec_()
|
||||||
|
|
||||||
if dlgProj.result() == QDialog.Accepted:
|
if dlgProj.result() == QDialog.Accepted:
|
||||||
if dlgProj.openState == GuiProjectLoad.OPEN_STATE:
|
if dlgProj.openState == GuiProjectLoad.OPEN_STATE:
|
||||||
self.openProject(dlgProj.openPath)
|
self.openProject(dlgProj.openPath)
|
||||||
|
|||||||
Reference in New Issue
Block a user