forked from enlightenment/enlightenment
e_bindings: do not crash when action is not found
This commit is contained in:
parent
448d65099c
commit
28b0ce28ac
|
@ -1683,6 +1683,10 @@ e_bindings_swipe_handle(E_Binding_Context ctxt, E_Object *obj, double direction,
|
|||
angle_accepted(binding->direction - binding->error, binding->direction + binding->error, direction))
|
||||
{
|
||||
act = e_action_find(binding->action);
|
||||
if (!act) {
|
||||
ERR("Action %s cannot be found!", binding->action);
|
||||
return NULL;
|
||||
}
|
||||
act->func.go(obj, binding->params);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue