diff options
author | Joshua Lock <josh@linux.intel.com> | 2012-03-28 12:15:02 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-29 21:12:57 +0100 |
commit | 71c1de347eef07a2059fc4544dc3cae090181f44 (patch) | |
tree | a8fe237fee7918c19dd70c80fc412c43ce97e314 /bitbake/lib | |
parent | 57434b40b8823969b2b4e88c327857f03722bd9e (diff) | |
download | poky-71c1de347eef07a2059fc4544dc3cae090181f44.tar.gz |
lib/bb/ui/crumbs/hig: fix layers_changed test
Because we sort the treeview to list specific layers at the top, and
therefore implicitly change the sorting of the underlying model, we can't
be certain that the original layer list will equal the new layer list
despite the included layers being the same.
To ensure we can do a simple equality test to determine whether the layers
have been modified first sort the lists to ensure we're comparing based on
contents alone.
(Bitbake rev: ae86cd8b4ef1e43b79230326ccba69e2900d074f)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hig.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py index 9927370f91..c47751c0fa 100644 --- a/bitbake/lib/bb/ui/crumbs/hig.py +++ b/bitbake/lib/bb/ui/crumbs/hig.py | |||
@@ -952,7 +952,10 @@ class LayerSelectionDialog (CrumbsDialog): | |||
952 | layers.append(model.get_value(it, 0)) | 952 | layers.append(model.get_value(it, 0)) |
953 | it = model.iter_next(it) | 953 | it = model.iter_next(it) |
954 | 954 | ||
955 | self.layers_changed = (self.layers != layers) | 955 | orig_layers = sorted(self.layers) |
956 | layers.sort() | ||
957 | |||
958 | self.layers_changed = (orig_layers != layers) | ||
956 | self.layers = layers | 959 | self.layers = layers |
957 | 960 | ||
958 | """ | 961 | """ |