From bbf9c0bf1638c2b360c1c9e8f2ab9888b88a5379 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Fri, 11 Nov 2016 14:58:37 +0100 Subject: [PATCH] clouseau_client: do not compact items which are bigger than 10 items otherwise things are getting really unreadable --- src/bin/clouseau_client.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/clouseau_client.c b/src/bin/clouseau_client.c index b4d79eb..a111337 100644 --- a/src/bin/clouseau_client.c +++ b/src/bin/clouseau_client.c @@ -2257,10 +2257,15 @@ _obj_info_can_list_be_compacted(Efl_Dbg_Info *root_eo) eina_value_pget(&(root_eo->value), &list); // We check that there is no list into this list. If such list exists, // we can't compact the list. + int number = 0; EINA_LIST_FOREACH(list.list, l, eo) { + number ++; if (eina_value_type_get(&(eo->value)) == EINA_VALUE_TYPE_LIST) return EINA_FALSE; + //this is very unreadable + if (number > 10) + return EINA_FALSE; } return EINA_TRUE; }