From: Cristiana Voicu Date: Tue, 27 Aug 2013 10:27:37 +0000 (+0300) Subject: hob: fixes for image combo box X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f8166ace0bd9155199166990ce15da24eb2e793b;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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] Signed-off-by: Cristiana Voicu Signed-off-by: Richard Purdie --- diff --git a/lib/bb/ui/crumbs/imageconfigurationpage.py b/lib/bb/ui/crumbs/imageconfigurationpage.py index ca168bc49fc..060fee241e6 100644 --- a/lib/bb/ui/crumbs/imageconfigurationpage.py +++ b/lib/bb/ui/crumbs/imageconfigurationpage.py @@ -496,16 +496,15 @@ class ImageConfigurationPage (HobPage): cnt = cnt + 1 self.image_combo.append_text(self.builder.recipe_model.__custom_image__) + if selected_image == self.builder.recipe_model.__custom_image__: + active = cnt + if self.custom_image_selected: self.image_combo.append_text("--Separator--") - cnt = cnt + 1 self.image_combo.append_text(self.custom_image_selected) + cnt = cnt + 2 if self.custom_image_selected == selected_image: active = cnt - cnt = cnt + 1 - - if selected_image == self.builder.recipe_model.__custom_image__: - active = cnt self.image_combo.set_active(active)