From f660c97698a90234bba8e1e9b61999993ac2db69 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Thu, 8 Jul 2010 19:54:12 +0400 Subject: [PATCH] Ticket #2256: changed focused button in editor quit dialog. Now the focused button in editor quit dialog is "Cancel quit" as was before 4.7.3 release. Button order stay as in 4.7.3 release. Likewise for hex editor. Signed-off-by: Andrew Borodin --- src/editor/editcmd.c | 1 + src/viewer/lib.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/editor/editcmd.c b/src/editor/editcmd.c index 2c5949bca..55b320f5c 100644 --- a/src/editor/editcmd.c +++ b/src/editor/editcmd.c @@ -2067,6 +2067,7 @@ edit_ok_to_exit (WEdit * edit) if (!edit_check_newline (edit)) return FALSE; + query_set_sel (2); act = edit_query_dialog3 (_("Quit"), _("File was modified. Save with exit?"), _("&Yes"), _("&No"), _("&Cancel quit")); } diff --git a/src/viewer/lib.c b/src/viewer/lib.c index 2ce5f235f..271055f15 100644 --- a/src/viewer/lib.c +++ b/src/viewer/lib.c @@ -149,6 +149,7 @@ mcview_ok_to_quit (mcview_t * view) if (!midnight_shutdown) { + query_set_sel (2); r = query_dialog (_("Quit"), _("File was modified. Save with exit?"), D_NORMAL, 3, _("&Yes"), _("&No"), _("&Cancel quit"));