summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-01-15 16:50:39 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-22 15:35:06 +0000
commit685cde50652fc47d163b7ba827238665216eaf30 (patch)
tree5a934b0d17f9160b62554faa40bbc2c1f9405ad6
parent5fc3fc343e5794764c4345f73b25b3f671a80a69 (diff)
downloadpoky-685cde50652fc47d163b7ba827238665216eaf30.tar.gz
poky-685cde50652fc47d163b7ba827238665216eaf30.tar.bz2
poky-685cde50652fc47d163b7ba827238665216eaf30.zip
bitbake: hob: combo box updated correctly
The 'select a base image' option is no longer displayed once an image is selected [YOCTO #3671] (Bitbake rev: 27f2247b4c227c3b5adb1ca33d0cd7f7b492e170) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
index ff773501b0..a0cbe85b0b 100644
--- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
+++ b/bitbake/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)