diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/runningbuild.py | 5 | ||||
-rw-r--r-- | bitbake/lib/bb/ui/hob.py | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/runningbuild.py b/bitbake/lib/bb/ui/crumbs/runningbuild.py index 247ed5d5af..e429715e08 100644 --- a/bitbake/lib/bb/ui/crumbs/runningbuild.py +++ b/bitbake/lib/bb/ui/crumbs/runningbuild.py | |||
@@ -68,6 +68,11 @@ class RunningBuild (gobject.GObject): | |||
68 | self.model = RunningBuildModel() | 68 | self.model = RunningBuildModel() |
69 | self.sequential = sequential | 69 | self.sequential = sequential |
70 | 70 | ||
71 | def reset (self): | ||
72 | self.pids_to_task.clear() | ||
73 | self.tasks_to_iter.clear() | ||
74 | self.model.clear() | ||
75 | |||
71 | def handle_event (self, event, pbar=None): | 76 | def handle_event (self, event, pbar=None): |
72 | # Handle an event from the event queue, this may result in updating | 77 | # Handle an event from the event queue, this may result in updating |
73 | # the model and thus the UI. Or it may be to tell us that the build | 78 | # the model and thus the UI. Or it may be to tell us that the build |
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py index 38f8a7751a..84df37de73 100644 --- a/bitbake/lib/bb/ui/hob.py +++ b/bitbake/lib/bb/ui/hob.py | |||
@@ -484,7 +484,7 @@ class MainWindow (gtk.Window): | |||
484 | 484 | ||
485 | def toggle_createview(self): | 485 | def toggle_createview(self): |
486 | self.set_menus_sensitive(True) | 486 | self.set_menus_sensitive(True) |
487 | self.build.model.clear() | 487 | self.build.reset() |
488 | self.nb.set_current_page(0) | 488 | self.nb.set_current_page(0) |
489 | 489 | ||
490 | def build_complete_cb(self, running_build): | 490 | def build_complete_cb(self, running_build): |