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
This commit is contained in:
Cedric BAIL 2019-03-01 16:20:45 -08:00
parent 86e2b208c7
commit b260c674e2
1 changed files with 2 additions and 1 deletions

View File

@ -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;