From 660d27149776511806a95bcf91cb8a28b35c53a6 Mon Sep 17 00:00:00 2001 From: handyande Date: Wed, 11 Jan 2006 14:22:54 +0000 Subject: [PATCH] If someone closed the exit dialog (not using cancel) the exit_dialog pointer got left around - fix SVN revision: 19724 --- src/bin/e_actions.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/bin/e_actions.c b/src/bin/e_actions.c index 392d65c..773c087 100644 --- a/src/bin/e_actions.c +++ b/src/bin/e_actions.c @@ -1262,11 +1262,21 @@ _e_actions_cb_exit_dialog_cancel(void *data, E_Dialog *dia) exit_dialog = NULL; } +static void +_e_actions_cb_exit_dialog_delete(E_Win *win) +{ + E_Dialog *dia; + + dia = win->data; + _e_actions_cb_exit_dialog_cancel(NULL, dia); +} + ACT_FN_GO(exit) { if (exit_dialog) e_object_del(E_OBJECT(exit_dialog)); exit_dialog = e_dialog_new(e_container_current_get(e_manager_current_get())); if (!exit_dialog) return; + e_win_delete_callback_set(exit_dialog->win, _e_actions_cb_exit_dialog_delete); e_dialog_title_set(exit_dialog, _("Are you sure you want to exit?")); e_dialog_text_set(exit_dialog, _("You requested to exit Enlightenment.
" -- 2.7.4