Don't show the Congratulation message until the project is really created :)
[bertos.git] / wizard / bertos.py
index ce6bd30f2970f54904a220b8ea4982cc9466d4d1..34b59839094c7b10a36d62c2362928fdd046ee4a 100755 (executable)
@@ -85,6 +85,8 @@ 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:
@@ -96,7 +98,7 @@ def editProject(project_file):
             dialog = BVersionDialog()
             if dialog.exec_():
                 version = dialog.version_page.currentVersion()
-                info_dict["SOURCES_PATH"] = version
+                info_dict["BERTOS_PATH"] = version
             continue
         except ToolchainException, exc:
             QMessageBox.critical(