aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-03-01 16:20:45 -0800
committerCedric BAIL <cedric.bail@free.fr>2019-03-01 17:10:40 -0800
commitb260c674e23d72bf923eaf78ea302cec7d15ba14 (patch)
tree2fe602482728add2cf1672fced74f486fee0a12f
parenteio: Efl.Io.Model doesn't have a parent class that actually provide any prope... (diff)
downloadefl-b260c674e23d72bf923eaf78ea302cec7d15ba14.tar.gz
elementary: do not randomly figure out property name to connect to.
Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D8089
-rw-r--r--src/lib/elementary/elm_view_list.c3
1 files changed, 2 insertions, 1 deletions
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;