summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2012-03-27 14:45:33 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-29 21:12:57 +0100
commit7463dd803a06666c69488e522327d0e9761a20ea (patch)
tree356471baa603fcd46244596cdf03931e9f1b5521 /bitbake
parentc489990f823a0865b04a4c1be9fcc927ca9b62f1 (diff)
downloadpoky-7463dd803a06666c69488e522327d0e9761a20ea.tar.gz
lib/bb/ui/crumbs/builder: allow user to cancel Layer selection dialogue
Because layer changes may take some time allow the user to cancel out of the dialogue and prevent Hob from applying any of the changes made. (Bitbake rev: a2d1c035a5dd3d112a887e4386dfaf9b0c37c104) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builder.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index 1a06dd741a..8390a0cf06 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -734,7 +734,9 @@ class Builder(gtk.Window):
734 flags = gtk.DIALOG_MODAL 734 flags = gtk.DIALOG_MODAL
735 | gtk.DIALOG_DESTROY_WITH_PARENT 735 | gtk.DIALOG_DESTROY_WITH_PARENT
736 | gtk.DIALOG_NO_SEPARATOR) 736 | gtk.DIALOG_NO_SEPARATOR)
737 button = dialog.add_button("Close", gtk.RESPONSE_YES) 737 button = dialog.add_button("Cancel", gtk.RESPONSE_NO)
738 HobAltButton.style_button(button)
739 button = dialog.add_button("OK", gtk.RESPONSE_YES)
738 HobButton.style_button(button) 740 HobButton.style_button(button)
739 response = dialog.run() 741 response = dialog.run()
740 if response == gtk.RESPONSE_YES: 742 if response == gtk.RESPONSE_YES: