From patchwork Thu Sep 20 15:47:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel,1/2] hob: remove confirmation dialog on close Date: Thu, 20 Sep 2012 15:47:37 -0000 From: Paul Eggleton X-Patchwork-Id: 36983 Message-Id: To: bitbake-devel@lists.openembedded.org This is not necessary for modern applications. Signed-off-by: Paul Eggleton --- bitbake/lib/bb/ui/crumbs/builder.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py index 9e9d040..3dcb795 100755 --- a/bitbake/lib/bb/ui/crumbs/builder.py +++ b/bitbake/lib/bb/ui/crumbs/builder.py @@ -1021,20 +1021,7 @@ class Builder(gtk.Window): def destroy_window_cb(self, widget, event): if not self.sensitive: return True - lbl = "Do you really want to exit the Hob image creator?" - 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: - return True + gtk.main_quit() def build_packages(self): _, all_recipes = self.recipe_model.get_selected_recipes()