From: Dongxiao Xu Date: Tue, 17 Apr 2012 08:21:39 +0000 (+0800) Subject: Hob: Set the "stop" button insensitive before hide it X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea37272ccc28d6e24b48286e5c4c3edbad1d57cd;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git Hob: Set the "stop" button insensitive before hide it If user stops a build, we need to firstly set the button insensitive and then hide it. This ensures the button's init status is "insensitive" in next build. Signed-off-by: Dongxiao Xu Signed-off-by: Richard Purdie --- diff --git a/lib/bb/ui/crumbs/builddetailspage.py b/lib/bb/ui/crumbs/builddetailspage.py index 6d8b509e865..51e6a4a6d27 100755 --- a/lib/bb/ui/crumbs/builddetailspage.py +++ b/lib/bb/ui/crumbs/builddetailspage.py @@ -238,6 +238,7 @@ class BuildDetailsPage (HobPage): self.builder.stop_build() def hide_stop_button(self): + self.stop_button.set_sensitive(False) self.stop_button.hide() def scroll_to_present_row(self, model, path, iter, v_adj, treeview):