elementary: fix another instances of no parent for Efl.Io.Model.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8539
This commit is contained in:
Cedric BAIL 2019-04-02 11:42:48 -07:00 committed by Marcel Hollerbach
parent b2db95947a
commit c9e62e957b
1 changed files with 3 additions and 7 deletions

View File

@ -94,7 +94,6 @@ _ACTIVATED_fwd(void *data, const Efl_Event *event)
{
const char *file;
Efl_Model *bmodel, *model;
Eina_Value path;
ELM_FILESELECTOR_ENTRY_DATA_GET(data, sd);
@ -103,12 +102,9 @@ _ACTIVATED_fwd(void *data, const Efl_Event *event)
bmodel = efl_ui_view_model_get(sd->button);
if (bmodel)
{
model = efl_add(efl_class_get(bmodel), NULL);
eina_value_setup(&path, EINA_VALUE_TYPE_STRING);
eina_value_set(&path, file);
efl_model_property_set(model, "path", &path);
eina_value_flush(&path);
efl_ui_view_model_set(sd->button, model);
model = efl_add(efl_class_get(bmodel), sd->button,
efl_io_model_path_set(efl_added, file));
efl_ui_view_model_set(sd->button, model);
}
efl_event_callback_legacy_call