forked from enlightenment/efl
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:
parent
86e2b208c7
commit
b260c674e2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue