Fix of CK_Cancel handling in Tree widget.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2011-03-29 11:11:16 +04:00
parent 0068809e58
commit ab1ee7bd9f
2 changed files with 3 additions and 1 deletions

View File

@ -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:

View File

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