Attempt to fix bug #153.
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 21 May 2010 12:14:23 +0000 (12:14 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 21 May 2010 12:14:23 +0000 (12:14 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3777 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BModulePage.py

index 9c13a2cc01402688b69ba71b70faef78d1d1f27e..ed5b635571c6cc32ff5b39d5bf2038a82bedd144 100644 (file)
@@ -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: