Fix also the module issue for projects created from a preset.
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 24 May 2010 08:45:55 +0000 (08:45 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 24 May 2010 08:45:55 +0000 (08:45 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3792 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BModulePage.py

index c6a8da67c281eb9bbaf9baddf987a112058ff426..8e1a80f7e4980352a9d1e3fe7e89dce7ec540b9e 100644 (file)
@@ -219,7 +219,9 @@ class BModulePage(BWizardPage):
         """
         Loads the module data.
         """
-        if not self.project.edit:
+        # Do not load the module data again when the Wizard is in editing mode
+        # or when it's working on a preset.
+        if not self.project.edit and not self.project.from_preset:
             # Load the module data every time so that if the user changed the cpu
             # the right configurations are picked up.
             try: