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:
Marcel Hollerbach 2017-09-02 19:41:30 +02:00
parent 3f379b6d49
commit 3af81932b0
1 changed files with 3 additions and 2 deletions

View File

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