forked from enlightenment/efl
efl_ui_focus_manager: present a slightly better error message
with this and the backtrace you can probebly figure out if you just registered the same widget twice for different types
This commit is contained in:
parent
3f379b6d49
commit
3af81932b0
|
@ -503,9 +503,10 @@ static Node*
|
|||
_register(Eo *obj, Efl_Ui_Focus_Manager_Calc_Data *pd, Efl_Ui_Focus_Object *child, Node *parent)
|
||||
{
|
||||
Node *node;
|
||||
if (!!eina_hash_find(pd->node_hash, &child))
|
||||
node = eina_hash_find(pd->node_hash, &child);
|
||||
if (node)
|
||||
{
|
||||
ERR("Child %p is already registered in the graph", child);
|
||||
ERR("Child %p is already registered in the graph (%s)", child, node->type == NODE_TYPE_ONLY_LOGICAL ? "logical" : "regular");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue