Check if the selected configuration parameter is in the current modulue configuration...
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 26 Jan 2009 19:09:51 +0000 (19:09 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 26 Jan 2009 19:09:51 +0000 (19:09 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2225 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BModulePage.py

index ad942334496c8565447d19e79cb83eba622bee2d..636b818886adaedad3249df52c5575f55ad3d1bd 100644 (file)
@@ -118,9 +118,11 @@ class BModulePage(BWizardPage):
     
     def _showPropertyDescription(self):
         self._resetPropertyDescription()
-        description = self._projectInfoRetrieve("CONFIGURATIONS")[self._currentModuleConfigurations()][self._currentProperty()]["description"]
-        name = self._currentProperty()
-        self._currentPropertyItem().setText(name + "\n" + description)
+        configurations = self._projectInfoRetrieve("CONFIGURATIONS")[self._currentModuleConfigurations()]
+        if self._currentProperty() in configurations.keys():
+            description = configurations[self._currentProperty()]["description"]
+            name = self._currentProperty()
+            self._currentPropertyItem().setText(name + "\n" + description)
     
     def _setupUi(self):
         self.pageContent.moduleTable.horizontalHeader().setResizeMode(QHeaderView.ResizeToContents)