summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/bb/ui/crumbs/runningbuild.py5
-rw-r--r--lib/bb/ui/hob.py2
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/bb/ui/crumbs/runningbuild.py b/lib/bb/ui/crumbs/runningbuild.py
index 247ed5d5a..e429715e0 100644
--- a/lib/bb/ui/crumbs/runningbuild.py
+++ b/lib/bb/ui/crumbs/runningbuild.py
@@ -68,6 +68,11 @@ class RunningBuild (gobject.GObject):
self.model = RunningBuildModel()
self.sequential = sequential
+ def reset (self):
+ self.pids_to_task.clear()
+ self.tasks_to_iter.clear()
+ self.model.clear()
+
def handle_event (self, event, pbar=None):
# Handle an event from the event queue, this may result in updating
# the model and thus the UI. Or it may be to tell us that the build
diff --git a/lib/bb/ui/hob.py b/lib/bb/ui/hob.py
index 38f8a7751..84df37de7 100644
--- a/lib/bb/ui/hob.py
+++ b/lib/bb/ui/hob.py
@@ -484,7 +484,7 @@ class MainWindow (gtk.Window):
def toggle_createview(self):
self.set_menus_sensitive(True)
- self.build.model.clear()
+ self.build.reset()
self.nb.set_current_page(0)
def build_complete_cb(self, running_build):