ui/crumbs/tasklistmodel: remove unnecessary check

Cheaper to set COL_INC to True regardless of whether it's already set.

(Bitbake rev: 12c6f98ba7a68baeeaee00594d910e1be8d55d87)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joshua Lock
2011-08-30 09:31:05 -07:00
committed by Richard Purdie
parent bfdc8a295b
commit ed15be3313

View File

@@ -436,9 +436,8 @@ class TaskListModel(gtk.ListStore):
def include_item(self, item_path, binb="", image_contents=False):
item_name = self[item_path][self.COL_NAME]
item_deps = self[item_path][self.COL_DEPS]
item_inc = self[item_path][self.COL_INC]
if not item_inc:
self[item_path][self.COL_INC] = True
self[item_path][self.COL_INC] = True
item_bin = self[item_path][self.COL_BINB].split(', ')
if not binb in item_bin: