- # 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))
+ # 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:
+ 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))