From c9325bdb78d0b9741fab2dc2fb6e93e5e6b3c482 Mon Sep 17 00:00:00 2001 From: duplo Date: Mon, 26 Jan 2009 19:09:51 +0000 Subject: [PATCH] Check if the selected configuration parameter is in the current modulue configuration parameter list git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2225 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BModulePage.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wizard/BModulePage.py b/wizard/BModulePage.py index ad942334..636b8188 100644 --- a/wizard/BModulePage.py +++ b/wizard/BModulePage.py @@ -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) -- 2.25.1