elementary: fix error path during shutdown of fileselector.

During shutdown, sometimes, we can have an error generated on the object
while it is invalidating, but before it is invalidated. This lead to
properties on the object to change to an error state and trigger the
properties changed logic. At this point, the parent has already been
destroyed and we don't really have anything more to do. So let's not
do anything.

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D8502
This commit is contained in:
Cedric BAIL 2019-03-28 14:09:54 -07:00
parent 589fca7540
commit 9afd12324b
1 changed files with 4 additions and 0 deletions

View File

@ -823,6 +823,10 @@ _process_model(Elm_Fileselector_Data *sd, Efl_Model *child)
double mtime = 0;
Eina_Bool dir = EINA_FALSE;
// In case we are shutting down, there might be an error being gnerated
if (!parent) return ;
// We should be good now
if (!_fetch_string_value(parent, "path", &parent_path) ||
!_fetch_string_value(child, "path", &path) ||
!_fetch_string_value(child, "filename", &filename) ||