Merge branch '2256_edit_quit_dialog_buttons'

* 2256_edit_quit_dialog_buttons:
  Ticket #2256: changed focused button in editor quit dialog.
This commit is contained in:
Andrew Borodin 2010-07-08 21:39:59 +04:00
commit d5bb254459
2 changed files with 2 additions and 0 deletions

View File

@ -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"));
}

View File

@ -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"));