eio: do not call efl_model_child_del at the end of build_st as that might result in the destruction of files.

This commit is contained in:
Cedric BAIL 2018-05-04 16:21:41 -07:00
parent 2951473a59
commit d84a268a71
1 changed files with 0 additions and 13 deletions

View File

@ -298,17 +298,6 @@ _eio_model_info_build(const Eio_Model *model, Eio_Model_Data *pd)
pd->info->parent_ref = EINA_TRUE;
}
static void
_eio_child_delete(Eio_Model *child, Eio_Model_Data *child_pd)
{
Eio_Model *parent;
if (!child_pd->delete_me) return ;
parent = efl_parent_get(child);
efl_model_child_del(parent, child);
}
static void
_eio_build_st_done(void *data, Eio_File *handler EINA_UNUSED, const Eina_Stat *stat)
{
@ -338,7 +327,6 @@ _eio_build_st_done(void *data, Eio_File *handler EINA_UNUSED, const Eina_Stat *s
efl_model_children_count_get(model);
}
_eio_child_delete(model, pd);
efl_unref(model);
}
@ -353,7 +341,6 @@ _eio_build_st_error(void *data, Eio_File *handler EINA_UNUSED, int error)
efl_model_properties_changed(model, "direct_info", "mtime", "atime", "ctime", "is_dir", "is_lnk", "size", "stat");
_eio_child_delete(model, pd);
efl_unref(model);
}