From b260c674e23d72bf923eaf78ea302cec7d15ba14 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Fri, 1 Mar 2019 16:20:45 -0800 Subject: [PATCH] elementary: do not randomly figure out property name to connect to. Reviewed-by: Vitor Sousa da Silva Differential Revision: https://phab.enlightenment.org/D8089 --- src/lib/elementary/elm_view_list.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/elm_view_list.c b/src/lib/elementary/elm_view_list.c index 3ccf1d6f7c..936b01e098 100644 --- a/src/lib/elementary/elm_view_list.c +++ b/src/lib/elementary/elm_view_list.c @@ -108,7 +108,8 @@ _item_content_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part) if (!idata->item) return NULL; prop = eina_hash_find(idata->priv->connect.properties, part); - if (!prop) prop = part; + // If no property are connected, let's not try to guess randomly. + if (!prop) return NULL; value = efl_model_property_get(idata->model, prop); if (value == NULL) return NULL;