Add empty BProject before starting load the project.
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 3 May 2010 12:45:58 +0000 (12:45 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 3 May 2010 12:45:58 +0000 (12:45 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3593 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos.py

index c53674a9f7574baee2397b893732d35b9e357fef..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: