From 01d83bd6bd174cc30ea1931b120a99a3dbbf74be 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 68dd0f6..2ad4b8b 100644 --- a/src/bin/clouseau_client.c +++ b/src/bin/clouseau_client.c @@ -2260,10 +2260,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; }