bitbake: hob: fixes for image combo box

When an image from scratch is selected, and recipes parsing
is canceled, the image shown by the combo box isn't correct.

[YOCTO #5000]
(Bitbake rev: f8166ace0bd9155199166990ce15da24eb2e793b)

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Cristiana Voicu 2013-08-27 13:27:37 +03:00 committed by Richard Purdie
parent 39052cd703
commit 1472b9ebff
1 changed files with 7 additions and 8 deletions

View File

@ -496,17 +496,16 @@ class ImageConfigurationPage (HobPage):
cnt = cnt + 1
self.image_combo.append_text(self.builder.recipe_model.__custom_image__)
if self.custom_image_selected:
self.image_combo.append_text("--Separator--")
cnt = cnt + 1
self.image_combo.append_text(self.custom_image_selected)
if self.custom_image_selected == selected_image:
active = cnt
cnt = cnt + 1
if selected_image == self.builder.recipe_model.__custom_image__:
active = cnt
if self.custom_image_selected:
self.image_combo.append_text("--Separator--")
self.image_combo.append_text(self.custom_image_selected)
cnt = cnt + 2
if self.custom_image_selected == selected_image:
active = cnt
self.image_combo.set_active(active)
if active != 0: