Redesigned the open project dialog

This commit is contained in:
Veronica K. B. Olsen
2020-05-21 19:45:00 +02:00
parent a9ff0e8c2b
commit 0bbd7de805
3 changed files with 326 additions and 30 deletions
+6 -1
View File
@@ -262,7 +262,12 @@ class GuiMain(QMainWindow):
dlgProj = GuiProjectLoad(self)
dlgProj.exec_()
if dlgProj.result() == QDialog.Accepted:
self.openProject(dlgProj.openPath)
if dlgProj.openState == GuiProjectLoad.OPEN_STATE:
self.openProject(dlgProj.openPath)
elif dlgProj.openState == GuiProjectLoad.BROWSE_STATE:
self.openProject(dlgProj.openPath)
elif dlgProj.openState == GuiProjectLoad.NEW_STATE:
self.newProject()
return True