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

login
register
mail settings
Submitter Dongxiao Xu
Date April 17, 2012, 8:21 a.m.
Message ID <7d00234c6c0ce79d4a07816216c43ab4400340e2.1334650694.git.dongxiao.xu@intel.com>
Download mbox | patch
Permalink /patch/26037/
State Accepted
Commit ea37272ccc28d6e24b48286e5c4c3edbad1d57cd
Headers show

Comments

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

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):
         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):