buttonbar_call(): don't handle Fx button with non-defined command.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2010-04-08 11:14:36 +04:00 committed by Ilia Maslakov
parent bc03546f3a
commit 3f11aecb74

View File

@ -2852,7 +2852,7 @@ buttonbar_call (WButtonBar * bb, int i)
{
cb_ret_t ret = MSG_NOT_HANDLED;
if (bb != NULL)
if ((bb != NULL) && (bb->labels[i].command != CK_Ignore_Key))
ret = bb->widget.parent->callback (bb->widget.parent,
(Widget *) bb, DLG_ACTION,
bb->labels[i].command, bb->labels[i].receiver);