From 041cc16dd97383e261683c0a08687014167ad57d Mon Sep 17 00:00:00 2001 From: Dongxiao Xu Date: Sun, 1 Apr 2012 20:14:16 +0800 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bitbake') 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): active = cnt cnt = cnt + 1 self.image_combo.append_text(self.builder.recipe_model.__dummy_image__) - self._image_combo_connect_signal() + if selected_image == self.builder.recipe_model.__dummy_image__: + active = cnt self.image_combo.set_active(-1) self.image_combo.set_active(active) + if active != -1: + self.show_baseimg_selected() + + self._image_combo_connect_signal() + def layer_button_clicked_cb(self, button): # Create a layer selection dialog self.builder.show_layer_selection_dialog() -- cgit v1.2.3-54-g00ecf