summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-07-16 13:25:52 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-06 13:02:25 +0100
commit08ccfacbc1a12904f51b9412fd13267edc265019 (patch)
tree173b5ee848c015ad0e345e8c2d46f6cf9fd0bfdf /bitbake/lib/bb/ui
parent3bef5a75d6dd06412157582de131e9b0e4ebfc7e (diff)
downloadpoky-08ccfacbc1a12904f51b9412fd13267edc265019.tar.gz
bitbake: hob: the saved image should be editable
Also, the image can be saved when the a name is filled. [YOCTO #4193] (Bitbake rev: 0edad0ab3ccd165125726d2aa3dfeb19dad246c9) 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')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hig/saveimagedialog.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hig/saveimagedialog.py b/bitbake/lib/bb/ui/crumbs/hig/saveimagedialog.py
index a20afcd50f..644a4a4348 100644
--- a/bitbake/lib/bb/ui/crumbs/hig/saveimagedialog.py
+++ b/bitbake/lib/bb/ui/crumbs/hig/saveimagedialog.py
@@ -99,7 +99,8 @@ class SaveImageDialog (CrumbsDialog):
99 self.save_button.set_label("Save") 99 self.save_button.set_label("Save")
100 self.save_button.connect("clicked", self.save_button_cb) 100 self.save_button.connect("clicked", self.save_button_cb)
101 self.save_button.set_size_request(110, 30) 101 self.save_button.set_size_request(110, 30)
102 self.save_button.set_sensitive(False) 102 if self.name_entry.get_text() == '':
103 self.save_button.set_sensitive(False)
103 104
104 table.attach(cancel_button, 2, 3, 0, 1) 105 table.attach(cancel_button, 2, 3, 0, 1)
105 table.attach(self.save_button, 3, 4, 0, 1) 106 table.attach(self.save_button, 3, 4, 0, 1)
@@ -124,6 +125,7 @@ class SaveImageDialog (CrumbsDialog):
124 description = description_buffer.get_text(description_buffer.get_start_iter(),description_buffer.get_end_iter()) 125 description = description_buffer.get_text(description_buffer.get_start_iter(),description_buffer.get_end_iter())
125 if new_text.islower() and new_text.isalnum(): 126 if new_text.islower() and new_text.isalnum():
126 self.builder.image_details_page.image_saved = True 127 self.builder.image_details_page.image_saved = True
128 self.builder.customized = False
127 self.builder.generate_new_image(self.directory+text, description) 129 self.builder.generate_new_image(self.directory+text, description)
128 self.builder.recipe_model.set_in_list(text, description) 130 self.builder.recipe_model.set_in_list(text, description)
129 self.builder.recipe_model.set_selected_image(text) 131 self.builder.recipe_model.set_selected_image(text)