Fix bug #141.
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 21 May 2010 12:38:17 +0000 (12:38 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 21 May 2010 12:38:17 +0000 (12:38 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3779 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BProject.py

index c3411ade1de69550feeabfbbdc85868048c3a376..b31c3f114fcc6e280d729e789094b918d91c4b6c 100644 (file)
@@ -199,7 +199,7 @@ class BProject(object):
         """
         # NOTE: this method does nothing (for now).
         preset_path = os.path.join(self.infos["BERTOS_PATH"], const.PREDEFINED_BOARDS_DIR)
-        preset_tree = {}
+        preset_tree = {"children": []}
         if os.path.exists(preset_path):
             preset_tree = self._loadProjectPresetTree(preset_path)
         self.infos["PRESET_TREE"] = preset_tree