diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-08-30 09:31:05 -0700 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2011-08-30 09:35:11 -0700 |
commit | 12c6f98ba7a68baeeaee00594d910e1be8d55d87 (patch) | |
tree | f984a23c89e3a7f2f6f94bf26555c2f6f8495e1a | |
parent | d2450536269996147a22d6eafbdf72aa62afa4f6 (diff) | |
download | bitbake-12c6f98ba7a68baeeaee00594d910e1be8d55d87.tar.gz |
ui/crumbs/tasklistmodel: remove unnecessary check
Cheaper to set COL_INC to True regardless of whether it's already set.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r-- | lib/bb/ui/crumbs/tasklistmodel.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/bb/ui/crumbs/tasklistmodel.py b/lib/bb/ui/crumbs/tasklistmodel.py index 14a611f5e..790631fc9 100644 --- a/lib/bb/ui/crumbs/tasklistmodel.py +++ b/lib/bb/ui/crumbs/tasklistmodel.py @@ -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: |