[bitbake-devel,4/4] Hob: Set the "stop" button insensitive before hide it

Submitted by Dongxiao Xu on April 17, 2012, 8:21 a.m.


Message ID 7d00234c6c0ce79d4a07816216c43ab4400340e2.1334650694.git.dongxiao.xu@intel.com
State Accepted
Commit ea37272ccc28d6e24b48286e5c4c3edbad1d57cd
Headers show

Commit Message

Dongxiao Xu April 17, 2012, 8:21 a.m.
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>
 lib/bb/ui/crumbs/builddetailspage.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

diff --git a/lib/bb/ui/crumbs/builddetailspage.py b/lib/bb/ui/crumbs/builddetailspage.py
index 6d8b509..51e6a4a 100755
--- a/lib/bb/ui/crumbs/builddetailspage.py
+++ b/lib/bb/ui/crumbs/builddetailspage.py
@@ -238,6 +238,7 @@  class BuildDetailsPage (HobPage):
     def hide_stop_button(self):
+        self.stop_button.set_sensitive(False)
     def scroll_to_present_row(self, model, path, iter, v_adj, treeview):