If someone closed the exit dialog (not using cancel) the exit_dialog pointer got left around - fix
SVN revision: 19724
This commit is contained in:
parent
38436c807a
commit
660d271497
|
@ -1262,11 +1262,21 @@ _e_actions_cb_exit_dialog_cancel(void *data, E_Dialog *dia)
|
||||||
exit_dialog = NULL;
|
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)
|
ACT_FN_GO(exit)
|
||||||
{
|
{
|
||||||
if (exit_dialog) e_object_del(E_OBJECT(exit_dialog));
|
if (exit_dialog) e_object_del(E_OBJECT(exit_dialog));
|
||||||
exit_dialog = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
exit_dialog = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||||
if (!exit_dialog) return;
|
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_title_set(exit_dialog, _("Are you sure you want to exit?"));
|
||||||
e_dialog_text_set(exit_dialog,
|
e_dialog_text_set(exit_dialog,
|
||||||
_("You requested to exit Enlightenment.<br>"
|
_("You requested to exit Enlightenment.<br>"
|
||||||
|
|
Loading…
Reference in New Issue