diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-09-21 15:47:25 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-24 12:13:50 +0100 |
commit | c46c5605fefa09a125e99e8eb85a85ae8d9077d7 (patch) | |
tree | fe57c54f3a4ef8b64a866f13829a67372c5a5f70 /bitbake | |
parent | bf567b14a8ccdf01667e4dd52d0705d967533927 (diff) | |
download | poky-c46c5605fefa09a125e99e8eb85a85ae8d9077d7.tar.gz |
bitbake: 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.
(Bitbake rev: a79eb5d918239db1dade8134743e6142a4854930)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builder.py | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py index cedbf94d10..267fde19b4 100755 --- a/bitbake/lib/bb/ui/crumbs/builder.py +++ b/bitbake/lib/bb/ui/crumbs/builder.py | |||
@@ -1025,20 +1025,11 @@ class Builder(gtk.Window): | |||
1025 | def destroy_window_cb(self, widget, event): | 1025 | def destroy_window_cb(self, widget, event): |
1026 | if not self.sensitive: | 1026 | if not self.sensitive: |
1027 | return True | 1027 | return True |
1028 | lbl = "<b>Do you really want to exit the Hob image creator?</b>" | 1028 | elif self.handler.building: |
1029 | dialog = CrumbsMessageDialog(self, lbl, gtk.STOCK_DIALOG_INFO) | 1029 | self.stop_build() |
1030 | button = dialog.add_button("Cancel", gtk.RESPONSE_NO) | ||
1031 | HobAltButton.style_button(button) | ||
1032 | button = dialog.add_button("Exit Hob", gtk.RESPONSE_YES) | ||
1033 | HobButton.style_button(button) | ||
1034 | dialog.set_default_response(gtk.RESPONSE_YES) | ||
1035 | response = dialog.run() | ||
1036 | dialog.destroy() | ||
1037 | if response == gtk.RESPONSE_YES: | ||
1038 | gtk.main_quit() | ||
1039 | return False | ||
1040 | else: | ||
1041 | return True | 1030 | return True |
1031 | else: | ||
1032 | gtk.main_quit() | ||
1042 | 1033 | ||
1043 | def build_packages(self): | 1034 | def build_packages(self): |
1044 | _, all_recipes = self.recipe_model.get_selected_recipes() | 1035 | _, all_recipes = self.recipe_model.get_selected_recipes() |