Attempt to fix bug #153.
[bertos.git] / 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: