summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-05-22 12:52:35 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-22 16:25:11 +0100
commit3216f00f86624a935008e7fbca0af55307318c91 (patch)
tree154fc2761b76a60e27c4a5b5fac03739cf8f80eb /bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
parentda34a8db498a4a332e807f20feee961a99aad004 (diff)
downloadpoky-3216f00f86624a935008e7fbca0af55307318c91.tar.gz
bitbake: hob: Table sorting criteria should not change after deselecting recipes/packages
After a recipe/package is deselected, the table is sorted as before the fadeout animation. [YOCTO #4453] (Bitbake rev: d4968eac539f777367ab1243a1049117cb261176) 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.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
index ffe310aa81..58db43f706 100755
--- a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
@@ -287,6 +287,10 @@ class RecipeSelectionPage (HobPage):
287 glib.idle_add(self.toggle_item_idle_cb, path, view_tree, cell, pagename) 287 glib.idle_add(self.toggle_item_idle_cb, path, view_tree, cell, pagename)
288 288
289 def pre_fadeout_checkout_include(self, tree, pagename): 289 def pre_fadeout_checkout_include(self, tree, pagename):
290 #after the fadeout the table will be sorted as before
291 self.sort_column_id = self.recipe_model.sort_column_id
292 self.sort_order = self.recipe_model.sort_order
293
290 #resync the included items to a backup fade include column 294 #resync the included items to a backup fade include column
291 it = self.recipe_model.get_iter_first() 295 it = self.recipe_model.get_iter_first()
292 while it: 296 while it:
@@ -323,6 +327,8 @@ class RecipeSelectionPage (HobPage):
323 cell.fadeout(tree, 1000, to_render_cells) 327 cell.fadeout(tree, 1000, to_render_cells)
324 328
325 def after_fadeout_checkin_include(self, table, ctrl, cell, tree, filter): 329 def after_fadeout_checkin_include(self, table, ctrl, cell, tree, filter):
330 self.recipe_model.sort_column_id = self.sort_column_id
331 self.recipe_model.sort_order = self.sort_order
326 tree.set_model(self.recipe_model.tree_model(filter)) 332 tree.set_model(self.recipe_model.tree_model(filter))
327 333
328 def set_recipe_curr_tab(self, curr_page): 334 def set_recipe_curr_tab(self, curr_page):