summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-09-11 17:51:59 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-14 09:25:06 +0100
commiteca0352195d2d8ae8ef15baab9737884ec674a46 (patch)
tree22b2e5107b9b07c790b398abbfb0893a21223237
parent81b0c0cd15cbd61285e6525f482412051371ea4c (diff)
downloadbitbake-eca0352195d2d8ae8ef15baab9737884ec674a46.tar.gz
hob: don't reorder layers list
We cannot reorder this list - it must stay in the order shown in the dialog (which may in future be configurable by the user). Fixes [YOCTO #2649]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/ui/crumbs/hig.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/bb/ui/crumbs/hig.py b/lib/bb/ui/crumbs/hig.py
index 3695fa0d5..d41a6b5bd 100644
--- a/lib/bb/ui/crumbs/hig.py
+++ b/lib/bb/ui/crumbs/hig.py
@@ -1029,14 +1029,8 @@ class LayerSelectionDialog (CrumbsDialog):
table_layer.attach(scroll, 0, 10, 0, 1)
layer_store = gtk.ListStore(gobject.TYPE_STRING)
- core_iter = None
for layer in layers:
- if layer.endswith("/meta"):
- core_iter = layer_store.prepend([layer])
- elif layer.endswith("/meta-hob") and core_iter:
- layer_store.insert_after(core_iter, [layer])
- else:
- layer_store.append([layer])
+ layer_store.append([layer])
col1 = gtk.TreeViewColumn('Enabled')
layer_tv.append_column(col1)
@@ -1110,10 +1104,7 @@ class LayerSelectionDialog (CrumbsDialog):
layers.append(model.get_value(it, 0))
it = model.iter_next(it)
- orig_layers = sorted(self.layers)
- layers.sort()
-
- self.layers_changed = (orig_layers != layers)
+ self.layers_changed = (self.layers != layers)
self.layers = layers
"""