From 901eeb94e31036aac7588987de4746e6646efb6f Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Wed, 23 May 2018 20:18:18 -0700 Subject: [PATCH] eio: enforce eio model to have a parent that provide main loop access. --- src/lib/eio/eio_model.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/eio/eio_model.c b/src/lib/eio/eio_model.c index 7275443ea2..b60d19b5e5 100644 --- a/src/lib/eio/eio_model.c +++ b/src/lib/eio/eio_model.c @@ -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);