summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui/crumbs/builder.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-09-21 15:47:25 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-24 12:12:38 +0100
commita79eb5d918239db1dade8134743e6142a4854930 (patch)
tree0933c8385d8e6d6b1614d41f769484c607970807 /lib/bb/ui/crumbs/builder.py
parentc3b623dc7d546a1ededdb532dcbcba4a6230bc65 (diff)
downloadbitbake-a79eb5d918239db1dade8134743e6142a4854930.tar.gz
hob: remove confirmation dialog on close
This is not necessary for modern applications - instead we just need to check if we're in the middle of a build and if so, do the same thing as pressing the "Stop" button. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/ui/crumbs/builder.py')
-rwxr-xr-xlib/bb/ui/crumbs/builder.py17
1 files changed, 4 insertions, 13 deletions
diff --git a/lib/bb/ui/crumbs/builder.py b/lib/bb/ui/crumbs/builder.py
index cedbf94d1..267fde19b 100755
--- a/lib/bb/ui/crumbs/builder.py
+++ b/lib/bb/ui/crumbs/builder.py
@@ -1025,20 +1025,11 @@ class Builder(gtk.Window):
def destroy_window_cb(self, widget, event):
if not self.sensitive:
return True
- lbl = "<b>Do you really want to exit the Hob image creator?</b>"
- dialog = CrumbsMessageDialog(self, lbl, gtk.STOCK_DIALOG_INFO)
- button = dialog.add_button("Cancel", gtk.RESPONSE_NO)
- HobAltButton.style_button(button)
- button = dialog.add_button("Exit Hob", gtk.RESPONSE_YES)
- HobButton.style_button(button)
- dialog.set_default_response(gtk.RESPONSE_YES)
- response = dialog.run()
- dialog.destroy()
- if response == gtk.RESPONSE_YES:
- gtk.main_quit()
- return False
- else:
+ elif self.handler.building:
+ self.stop_build()
return True
+ else:
+ gtk.main_quit()
def build_packages(self):
_, all_recipes = self.recipe_model.get_selected_recipes()