Reload the module data every time the user enter into the module configuration page...
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 21 May 2010 14:35:52 +0000 (14:35 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 21 May 2010 14:35:52 +0000 (14:35 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3784 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BModulePage.py

index ed5b635571c6cc32ff5b39d5bf2038a82bedd144..d42cbb61bcec49bf954f0567fbf48495afeea1ba 100644 (file)
@@ -219,18 +219,16 @@ class BModulePage(BWizardPage):
         """
         Loads the module data.
         """
-        # Load the module data only if it isn't already loaded
-        if not self.projectInfo("MODULES") \
-                and not self.projectInfo("LISTS") \
-                and not self.projectInfo("CONFIGURATIONS"):
-            try:
-                self.project.loadModuleData()
-            except ModuleDefineException, e:
-                self.exceptionOccurred(self.tr("Error parsing line '%2' in file %1").arg(e.path).arg(e.line))
-            except EnumDefineException, e:
-                self.exceptionOccurred(self.tr("Error parsing line '%2' in file %1").arg(e.path).arg(e.line))
-            except ConfigurationDefineException, e:
-                self.exceptionOccurred(self.tr("Error parsing line '%2' in file %1").arg(e.path).arg(e.line))
+        # Load the module data every time so that if the user changed the cpu
+        # the right configurations are picked up.
+        try:
+            self.project.loadModuleData()
+        except ModuleDefineException, e:
+            self.exceptionOccurred(self.tr("Error parsing line '%2' in file %1").arg(e.path).arg(e.line))
+        except EnumDefineException, e:
+            self.exceptionOccurred(self.tr("Error parsing line '%2' in file %1").arg(e.path).arg(e.line))
+        except ConfigurationDefineException, e:
+            self.exceptionOccurred(self.tr("Error parsing line '%2' in file %1").arg(e.path).arg(e.line))
     
     def fillModuleTree(self):
         """