summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-09-17 13:51:14 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-22 12:19:45 +0100
commit3c41bea907bb98f9ccc097667506a6e660dd1d1b (patch)
treed9aa59c0d8b9d792e03fd26e3069194f423a2ec0 /bitbake/lib/bb/ui
parentd28b1816e91553185f8d43a6bd608bffbe32e06b (diff)
downloadpoky-3c41bea907bb98f9ccc097667506a6e660dd1d1b.tar.gz
bitbake: hob: populate "Save image" dialog when saving changes to a custom image recipe
If my build starts from a YP standard image recipe, the 'Save image recipe' dialog should be empty. If my build starts from a custom image recipe, the 'Save image recipe' dialog should populate the 'Name' and 'Description' fields with the values set for the custom image recipe. [YOCTO #5004] (Bitbake rev: 10757c529fe0b4b9a39740d269831347a3aab4a0) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/imagedetailspage.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
index ca33e08a77..b5d9660218 100755
--- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
+++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
@@ -635,6 +635,14 @@ class ImageDetailsPage (HobPage):
635 images_dir = topdir + "/recipes/images/" 635 images_dir = topdir + "/recipes/images/"
636 self.builder.ensure_dir(images_dir) 636 self.builder.ensure_dir(images_dir)
637 637
638 self.name_field_template = self.builder.image_configuration_page.custom_image_selected
639 if self.name_field_template:
640 image_path = self.builder.recipe_model.pn_path[self.name_field_template]
641 image_iter = self.builder.recipe_model.get_iter(image_path)
642 self.description_field_template = self.builder.recipe_model.get_value(image_iter, self.builder.recipe_model.COL_DESC)
643 else:
644 self.name_field_template = ""
645
638 dialog = SaveImageDialog(images_dir, self.name_field_template, self.description_field_template, 646 dialog = SaveImageDialog(images_dir, self.name_field_template, self.description_field_template,
639 "Save image recipe", self.builder, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT) 647 "Save image recipe", self.builder, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT)
640 response = dialog.run() 648 response = dialog.run()