mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-13 03:13:08 +03:00
Fix of CK_Cancel handling in Tree widget.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
0068809e58
commit
ab1ee7bd9f
@ -404,7 +404,6 @@ tree_callback (Dlg_head * h, Widget * sender, dlg_msg_t msg, int parm, void *dat
|
||||
return MSG_HANDLED;
|
||||
|
||||
case DLG_ACTION:
|
||||
/* command from buttonbar */
|
||||
return send_message ((Widget *) find_tree (h), WIDGET_COMMAND, parm);
|
||||
|
||||
default:
|
||||
|
@ -1070,6 +1070,9 @@ tree_execute_cmd (WTree * tree, unsigned long command)
|
||||
case CK_Delete:
|
||||
tree_rmdir (tree);
|
||||
break;
|
||||
case CK_Cancel:
|
||||
/* don't close tree due to SIGINT */
|
||||
break;
|
||||
default:
|
||||
res = MSG_NOT_HANDLED;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user