mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
Ticket #3557: mcedit should not be closed on Ctrl-G.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
ea2a33fbe5
commit
9a617a6d5a
@ -742,13 +742,14 @@ edit_dialog_command_execute (WDialog * h, long command)
|
|||||||
break;
|
break;
|
||||||
case CK_Quit:
|
case CK_Quit:
|
||||||
case CK_Cancel:
|
case CK_Cancel:
|
||||||
|
/* don't close editor due to SIGINT, but stop move/resize window */
|
||||||
{
|
{
|
||||||
Widget *w = WIDGET (h->current->data);
|
Widget *w = WIDGET (h->current->data);
|
||||||
|
|
||||||
if (!edit_widget_is_editor (w) || ((WEdit *) w)->drag_state == MCEDIT_DRAG_NORMAL)
|
if (edit_widget_is_editor (w) && ((WEdit *) w)->drag_state != MCEDIT_DRAG_NORMAL)
|
||||||
dlg_stop (h);
|
|
||||||
else
|
|
||||||
edit_restore_size ((WEdit *) w);
|
edit_restore_size ((WEdit *) w);
|
||||||
|
else if (command == CK_Quit)
|
||||||
|
dlg_stop (h);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case CK_About:
|
case CK_About:
|
||||||
|
Loading…
Reference in New Issue
Block a user