diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2013-09-04 18:45:07 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-06 22:18:09 +0100 |
commit | 94483ee5ae9f4051bccd660c4718c36564e17161 (patch) | |
tree | c39a6201b227fa92ed1d4d2b65597bc3b619d7e1 | |
parent | 9aec9ee41d4d893325d9bf92b8a53f2e68e4973d (diff) | |
download | bitbake-94483ee5ae9f4051bccd660c4718c36564e17161.tar.gz |
hob: remove custom image from the images list when not needed
Selected custom image recipes should be cleared from the combo the moment
you change your selection. The idea is to always perform the selection of
those images in the same way (i.e through the "Select from my image
recipes" option).
[YOCTO #5001]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/ui/crumbs/imageconfigurationpage.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bb/ui/crumbs/imageconfigurationpage.py b/lib/bb/ui/crumbs/imageconfigurationpage.py index 060fee241..3babc8eb4 100644 --- a/lib/bb/ui/crumbs/imageconfigurationpage.py +++ b/lib/bb/ui/crumbs/imageconfigurationpage.py @@ -387,6 +387,10 @@ class ImageConfigurationPage (HobPage): selected_image = self.__dummy_image__ self.update_image_combo(self.builder.recipe_model, None) dialog.destroy() + else: + if self.custom_image_selected: + self.custom_image_selected = None + self.update_image_combo(self.builder.recipe_model, selected_image) if not selected_image or (selected_image == self.__dummy_image__): self.builder.window_sensitive(True) |