Use fixed size for the Wizard dialog.
[bertos.git] / wizard / BModulePage.py
index ed5b635571c6cc32ff5b39d5bf2038a82bedd144..8e1a80f7e4980352a9d1e3fe7e89dce7ec540b9e 100644 (file)
@@ -219,10 +219,11 @@ 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"):
+        # 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:
                 self.project.loadModuleData()
             except ModuleDefineException, e: