From: Shane Wang Date: Mon, 9 Apr 2012 14:13:41 +0000 (+0800) Subject: Hob: clean up to call clear_busy() in hobeventhandler.py X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7b6414e2b82666c3cfa5432ce8fe8c348b227441;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git Hob: clean up to call clear_busy() in hobeventhandler.py Signed-off-by: Shane Wang Signed-off-by: Richard Purdie --- diff --git a/lib/bb/ui/crumbs/builder.py b/lib/bb/ui/crumbs/builder.py index 1730c775892..88a673a0446 100755 --- a/lib/bb/ui/crumbs/builder.py +++ b/lib/bb/ui/crumbs/builder.py @@ -545,7 +545,6 @@ class Builder(gtk.Window): HobButton.style_button(button) response = dialog.run() dialog.destroy() - self.handler.clear_busy() self.configuration.curr_mach = "" self.image_configuration_page.switch_machine_combo() self.switch_page(self.MACHINE_SELECTION) diff --git a/lib/bb/ui/crumbs/hobeventhandler.py b/lib/bb/ui/crumbs/hobeventhandler.py index d608b5f7804..dd855309789 100644 --- a/lib/bb/ui/crumbs/hobeventhandler.py +++ b/lib/bb/ui/crumbs/hobeventhandler.py @@ -202,6 +202,7 @@ class HobHandler(gobject.GObject): elif isinstance(event, bb.command.CommandFailed): self.commands_async = [] + self.clear_busy() self.emit("command-failed", self.error_msg) self.error_msg = "" elif isinstance(event, (bb.event.ParseStarted,