From: Cristiana Voicu Date: Tue, 15 Jan 2013 14:50:39 +0000 (+0200) Subject: hob: combo box updated correctly X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=27f2247b4c227c3b5adb1ca33d0cd7f7b492e170;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git hob: combo box updated correctly The 'select a base image' option is no longer displayed once an image is selected [YOCTO #3671] 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 ff773501b04..a0cbe85b0b7 100644 --- a/lib/bb/ui/crumbs/imageconfigurationpage.py +++ b/lib/bb/ui/crumbs/imageconfigurationpage.py @@ -404,7 +404,7 @@ class ImageConfigurationPage (HobPage): image_model = recipe_model.tree_model(filter) image_model.set_sort_column_id(recipe_model.COL_NAME, gtk.SORT_ASCENDING) active = 0 - cnt = 1 + cnt = 0 white_pattern = [] if self.builder.parameters.image_white_pattern: @@ -422,7 +422,10 @@ class ImageConfigurationPage (HobPage): model = self.image_combo.get_model() model.clear() # Set a indicator text to combo store when first open - self.image_combo.append_text(self.__dummy_image__) + if not selected_image: + self.image_combo.append_text(self.__dummy_image__) + cnt = cnt + 1 + # append and set active while it: path = image_model.get_path(it)