summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-04-01 20:14:16 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-05 15:13:41 +0100
commit041cc16dd97383e261683c0a08687014167ad57d (patch)
tree8ada532682ae4a5f8f865c6fbbeea31306272f06 /bitbake
parentcda92e27b40a40402d33bbe5f1722ca8846a7233 (diff)
downloadpoky-041cc16dd97383e261683c0a08687014167ad57d.tar.gz
Hob: Check "dummy" image while update_image_combo
We also need to check if the selected image is "Create your own image" and set it as active. Besides, to avoid the impact of set_active(), we need to move the connect signal in the end of the update_image_combo() function. (Bitbake rev: 54ae7ddac450b4717e5ccae3bfe9acb479449451) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
index 30f89795d2..9271c48921 100644
--- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
+++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
@@ -338,11 +338,17 @@ class ImageConfigurationPage (HobPage):
338 active = cnt 338 active = cnt
339 cnt = cnt + 1 339 cnt = cnt + 1
340 self.image_combo.append_text(self.builder.recipe_model.__dummy_image__) 340 self.image_combo.append_text(self.builder.recipe_model.__dummy_image__)
341 self._image_combo_connect_signal() 341 if selected_image == self.builder.recipe_model.__dummy_image__:
342 active = cnt
342 343
343 self.image_combo.set_active(-1) 344 self.image_combo.set_active(-1)
344 self.image_combo.set_active(active) 345 self.image_combo.set_active(active)
345 346
347 if active != -1:
348 self.show_baseimg_selected()
349
350 self._image_combo_connect_signal()
351
346 def layer_button_clicked_cb(self, button): 352 def layer_button_clicked_cb(self, button):
347 # Create a layer selection dialog 353 # Create a layer selection dialog
348 self.builder.show_layer_selection_dialog() 354 self.builder.show_layer_selection_dialog()