diff options
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hig.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py index 1db93eac17..3a66e7cc3a 100644 --- a/bitbake/lib/bb/ui/crumbs/hig.py +++ b/bitbake/lib/bb/ui/crumbs/hig.py | |||
@@ -803,8 +803,14 @@ class LayerSelectionDialog (CrumbsDialog): | |||
803 | table_layer.attach(scroll, 0, 10, 0, 1) | 803 | table_layer.attach(scroll, 0, 10, 0, 1) |
804 | 804 | ||
805 | layer_store = gtk.ListStore(gobject.TYPE_STRING) | 805 | layer_store = gtk.ListStore(gobject.TYPE_STRING) |
806 | core_iter = None | ||
806 | for layer in layers: | 807 | for layer in layers: |
807 | layer_store.set(layer_store.append(), 0, layer) | 808 | if layer.endswith("/meta"): |
809 | core_iter = layer_store.prepend([layer]) | ||
810 | elif layer.endswith("/meta-hob") and core_iter: | ||
811 | layer_store.insert_after(core_iter, [layer]) | ||
812 | else: | ||
813 | layer_store.append([layer]) | ||
808 | 814 | ||
809 | col1 = gtk.TreeViewColumn('Enabled') | 815 | col1 = gtk.TreeViewColumn('Enabled') |
810 | layer_tv.append_column(col1) | 816 | layer_tv.append_column(col1) |