diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/configurator.py | 4 | ||||
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/layereditor.py | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/configurator.py b/bitbake/lib/bb/ui/crumbs/configurator.py index 551179950a..e7c524afce 100644 --- a/bitbake/lib/bb/ui/crumbs/configurator.py +++ b/bitbake/lib/bb/ui/crumbs/configurator.py | |||
@@ -139,7 +139,9 @@ class Configurator(gobject.GObject): | |||
139 | name = self._getLayerName(layerpath) | 139 | name = self._getLayerName(layerpath) |
140 | if name not in self.enabled_layers: | 140 | if name not in self.enabled_layers: |
141 | self.addLayer(name, layerpath) | 141 | self.addLayer(name, layerpath) |
142 | return name, layerpath | 142 | return name, layerpath |
143 | else: | ||
144 | return None, None | ||
143 | 145 | ||
144 | def addLayer(self, name, path): | 146 | def addLayer(self, name, path): |
145 | self.enabled_layers[name] = path | 147 | self.enabled_layers[name] = path |
diff --git a/bitbake/lib/bb/ui/crumbs/layereditor.py b/bitbake/lib/bb/ui/crumbs/layereditor.py index 76a2eb536f..7c581d642f 100644 --- a/bitbake/lib/bb/ui/crumbs/layereditor.py +++ b/bitbake/lib/bb/ui/crumbs/layereditor.py | |||
@@ -132,5 +132,6 @@ class LayerEditor(gtk.Dialog): | |||
132 | # FIXME: verify we've actually got a layer conf? | 132 | # FIXME: verify we've actually got a layer conf? |
133 | if path.endswith(".conf"): | 133 | if path.endswith(".conf"): |
134 | name, layerpath = self.configurator.addLayerConf(path) | 134 | name, layerpath = self.configurator.addLayerConf(path) |
135 | self.newly_added[name] = layerpath | 135 | if name: |
136 | self.layer_store.append([name, layerpath, True]) | 136 | self.newly_added[name] = layerpath |
137 | self.layer_store.append([name, layerpath, True]) | ||