bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3af81932b04c60f89903834057dfb652cdcd9d5c

commit 3af81932b04c60f89903834057dfb652cdcd9d5c
Author: Marcel Hollerbach <marcel-hollerb...@t-online.de>
Date:   Sat Sep 2 19:41:30 2017 +0200

    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
---
 src/lib/elementary/efl_ui_focus_manager_calc.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/lib/elementary/efl_ui_focus_manager_calc.c 
b/src/lib/elementary/efl_ui_focus_manager_calc.c
index 82e4c86634..21c07aef5a 100644
--- a/src/lib/elementary/efl_ui_focus_manager_calc.c
+++ b/src/lib/elementary/efl_ui_focus_manager_calc.c
@@ -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;
      }
 

-- 


Reply via email to