]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
Hob: Set the "stop" button insensitive before hide it
authorDongxiao Xu <dongxiao.xu@intel.com>
Tue, 17 Apr 2012 08:21:39 +0000 (16:21 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Apr 2012 10:40:36 +0000 (11:40 +0100)
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 <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/ui/crumbs/builddetailspage.py

index 6d8b509e8653b6bef2f801043dc51a7536460681..51e6a4a6d27cddea1cdc411a08581949c63cf238 100755 (executable)
@@ -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):