From: duplo Date: Fri, 21 May 2010 12:14:23 +0000 (+0000) Subject: Attempt to fix bug #153. X-Git-Tag: 2.5.0~140 X-Git-Url: https://codewiz.org/gitweb?p=bertos.git;a=commitdiff_plain;h=73f82b82397a1fa0eae5c45af01f2363aa1c20ca Attempt to fix bug #153. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3777 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BModulePage.py b/wizard/BModulePage.py index 9c13a2cc..ed5b6355 100644 --- a/wizard/BModulePage.py +++ b/wizard/BModulePage.py @@ -376,7 +376,12 @@ class BModulePage(BWizardPage): """ Returns the configuration for the selected module. """ - configuration = self.projectInfo("MODULES")[module]["configuration"] + configuration = [] + if module: + # On linux platform it seems that the behaviour of the focus + # changing is a bit different from the mac one. So if module is + # None then no configurations should be returned. + configuration = self.projectInfo("MODULES")[module]["configuration"] if len(configuration) > 0: return self.projectInfo("CONFIGURATIONS")[configuration] else: