X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2Fbertos.py;h=f04c16f639c163f9ac2a410b9464891fe0ec98c6;hb=8443f2c0c53e22324fdd2c9a2659de7c85c7fba3;hp=c53674a9f7574baee2397b893732d35b9e357fef;hpb=95b71bb91147ac88fa10fed3385ce2f0307fe13c;p=bertos.git diff --git a/wizard/bertos.py b/wizard/bertos.py index c53674a9..f04c16f6 100755 --- a/wizard/bertos.py +++ b/wizard/bertos.py @@ -85,13 +85,15 @@ def newProject(): def editProject(project_file): info_dict = {} while(True): + # Empty project is the default fallback. + QApplication.instance().project = BProject() try: QApplication.instance().project = BProject(project_file, info_dict) except VersionException: QMessageBox.critical( None, QObject().tr("BeRTOS version not found!"), - QObject().tr("The selected BeRTOS version is not found, please select an existing one...") + QObject().tr("The selected BeRTOS version was not found, please select another one...") ) dialog = BVersionDialog() if dialog.exec_(): @@ -102,7 +104,7 @@ def editProject(project_file): QMessageBox.critical( None, QObject().tr("Toolchain not found!"), - QObject().tr("The selected toolchain is not found, please select an existing one...") + QObject().tr("The selected toolchain was not found, please select another one...") ) QApplication.instance().project = exc.partial_project dialog = BToolchainDialog()