From 73f82b82397a1fa0eae5c45af01f2363aa1c20ca Mon Sep 17 00:00:00 2001 From: duplo Date: Fri, 21 May 2010 12:14:23 +0000 Subject: [PATCH] Attempt to fix bug #153. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3777 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BModulePage.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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: -- 2.25.1