diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/tasklistmodel.py | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/tasklistmodel.py b/bitbake/lib/bb/ui/crumbs/tasklistmodel.py index d9829861bb..5e979b7e2f 100644 --- a/bitbake/lib/bb/ui/crumbs/tasklistmodel.py +++ b/bitbake/lib/bb/ui/crumbs/tasklistmodel.py | |||
@@ -429,12 +429,24 @@ class TaskListModel(gtk.ListStore): | |||
429 | Empty self.contents by setting the include of each entry to None | 429 | Empty self.contents by setting the include of each entry to None |
430 | """ | 430 | """ |
431 | def reset(self): | 431 | def reset(self): |
432 | # Deselect images - slightly more complex logic so that we don't | ||
433 | # have to iterate all of the contents of the main model, instead | ||
434 | # just iterate the images model. | ||
435 | if self.selected_image: | ||
436 | iit = self.images.get_iter_first() | ||
437 | while iit: | ||
438 | pit = self.images.convert_iter_to_child_iter(iit) | ||
439 | self.set(pit, self.COL_INC, False) | ||
440 | iit = self.images.iter_next(iit) | ||
441 | self.selected_image = None | ||
442 | |||
432 | it = self.contents.get_iter_first() | 443 | it = self.contents.get_iter_first() |
433 | while it: | 444 | while it: |
434 | path = self.contents.get_path(it) | 445 | oit = self.contents.convert_iter_to_child_iter(it) |
435 | opath = self.contents.convert_path_to_child_path(path) | 446 | self.set(oit, |
436 | self[opath][self.COL_INC] = False | 447 | self.COL_INC, False, |
437 | self[opath][self.COL_BINB] = "" | 448 | self.COL_BINB, "", |
449 | self.COL_IMG, False) | ||
438 | # As we've just removed the first item... | 450 | # As we've just removed the first item... |
439 | it = self.contents.get_iter_first() | 451 | it = self.contents.get_iter_first() |
440 | 452 | ||