summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-05-07 11:07:55 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-10 13:33:33 +0100
commit9c60292b6fc1effdb6a7d41453e3ff7db850e178 (patch)
treef3be8ede1fc97404fe293637067bbb03884c629b /bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
parent24f060805f106292a393294091c1a65b0fa6b3ad (diff)
downloadpoky-9c60292b6fc1effdb6a7d41453e3ff7db850e178.tar.gz
bitbake: hob: clicking on "cancel" should reset table sorting to default
Changed the "cancel" callback function for both recipes and packages list page. [YOCTO #4333] (Bitbake rev: 05ebbaa2426716c6254c4a98872020d02d2944bd) 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/crumbs/recipeselectionpage.py')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/recipeselectionpage.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
index 8573b81ea8..9c138b2d66 100755
--- a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
@@ -214,6 +214,7 @@ class RecipeSelectionPage (HobPage):
214 if self.recipe_model.filtered_nb == 0: 214 if self.recipe_model.filtered_nb == 0:
215 if not self.ins.get_nth_page(current_tab).top_bar: 215 if not self.ins.get_nth_page(current_tab).top_bar:
216 self.ins.get_nth_page(current_tab).add_no_result_bar(entry) 216 self.ins.get_nth_page(current_tab).add_no_result_bar(entry)
217 self.ins.get_nth_page(current_tab).top_bar.set_no_show_all(True)
217 self.ins.get_nth_page(current_tab).top_bar.show() 218 self.ins.get_nth_page(current_tab).top_bar.show()
218 self.ins.get_nth_page(current_tab).scroll.hide() 219 self.ins.get_nth_page(current_tab).scroll.hide()
219 else: 220 else:
@@ -243,13 +244,22 @@ class RecipeSelectionPage (HobPage):
243 self.builder.show_recipe_property_dialog(properties) 244 self.builder.show_recipe_property_dialog(properties)
244 245
245 def build_packages_clicked_cb(self, button): 246 def build_packages_clicked_cb(self, button):
247 self.refresh_tables()
246 self.builder.build_packages() 248 self.builder.build_packages()
247 249
250 def refresh_tables(self):
251 self.ins.reset_entry(self.ins.search, 0)
252 for tab in self.tables:
253 index = self.tables.index(tab)
254 filter = self.pages[index]['filter']
255 tab.set_model(self.recipe_model.tree_model(filter, search_data="", initial=True))
256
248 def back_button_clicked_cb(self, button): 257 def back_button_clicked_cb(self, button):
249 self.builder.recipe_model.set_selected_image(self.builder.configuration.initial_selected_image) 258 self.builder.recipe_model.set_selected_image(self.builder.configuration.initial_selected_image)
250 self.builder.image_configuration_page.update_image_combo(self.builder.recipe_model, self.builder.configuration.initial_selected_image) 259 self.builder.image_configuration_page.update_image_combo(self.builder.recipe_model, self.builder.configuration.initial_selected_image)
251 self.builder.image_configuration_page.update_image_desc() 260 self.builder.image_configuration_page.update_image_desc()
252 self.builder.show_configuration() 261 self.builder.show_configuration()
262 self.refresh_tables()
253 263
254 def refresh_selection(self): 264 def refresh_selection(self):
255 self.builder.configuration.selected_image = self.recipe_model.get_selected_image() 265 self.builder.configuration.selected_image = self.recipe_model.get_selected_image()