eio: enforce eio model to have a parent that provide main loop access.

This commit is contained in:
Cedric BAIL 2018-05-23 20:18:18 -07:00
parent b59911d5af
commit 901eeb94e3
1 changed files with 5 additions and 0 deletions

View File

@ -939,6 +939,11 @@ static Efl_Object *
_eio_model_efl_object_finalize(Eo *obj, Eio_Model_Data *pd)
{
if (!pd->path) return NULL;
if (!efl_provider_find(obj, EFL_LOOP_CLASS))
{
ERR("Eio.Model require a parent that provide access to the main loop.");
return NULL;
}
// If we have no info at all, let's check this path first
if (!pd->info) _eio_build_st(obj, pd);