From c8957a4fbe8182f8a25c968c04988cebe07f6508 Mon Sep 17 00:00:00 2001 From: Cristiana Voicu Date: Wed, 4 Sep 2013 18:45:07 +0300 Subject: bitbake: 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] (Bitbake rev: 94483ee5ae9f4051bccd660c4718c36564e17161) Signed-off-by: Cristiana Voicu Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bitbake/lib/bb') diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py index 060fee241e..3babc8eb47 100644 --- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py +++ b/bitbake/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) -- cgit v1.2.3-54-g00ecf