summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui
diff options
context:
space:
mode:
authorLiming An <limingx.l.an@intel.com>2012-06-04 18:52:14 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-08 12:13:16 +0100
commit574b5ecfa58a5f585be6efa7c77ef9574dbc5a27 (patch)
tree6aaf3705e6926dde2ecfb7e623a9e81d7a75b4cc /bitbake/lib/bb/ui
parente91f1e28bc1742f010225c49410e49b1257c15c7 (diff)
downloadpoky-574b5ecfa58a5f585be6efa7c77ef9574dbc5a27.tar.gz
Hob: fixed the index issue when set actived item for base image combo
The combo item index dosn't be increased as the insert a dummy item, when execute the upadate base image combo operation. [YOCTO #2500] (Bitbake rev: 59e19634a84fcb4c34b92cdcf7a9ea807c9abb63) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r--bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
index b5f0a5a037..80332feaba 100644
--- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
+++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
@@ -364,7 +364,7 @@ class ImageConfigurationPage (HobPage):
364 filter = {RecipeListModel.COL_TYPE : ['image']} 364 filter = {RecipeListModel.COL_TYPE : ['image']}
365 image_model = recipe_model.tree_model(filter) 365 image_model = recipe_model.tree_model(filter)
366 active = 0 366 active = 0
367 cnt = 0 367 cnt = 1
368 368
369 white_pattern = [] 369 white_pattern = []
370 if self.builder.parameters.image_white_pattern: 370 if self.builder.parameters.image_white_pattern:
@@ -415,7 +415,6 @@ class ImageConfigurationPage (HobPage):
415 if selected_image == self.builder.recipe_model.__custom_image__: 415 if selected_image == self.builder.recipe_model.__custom_image__:
416 active = cnt 416 active = cnt
417 417
418 self.image_combo.set_active(0)
419 self.image_combo.set_active(active) 418 self.image_combo.set_active(active)
420 419
421 if active != 0: 420 if active != 0: