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
devs/lauromoura/csharp_conventions
Cedric BAIL 4 years ago
parent 589fca7540
commit 9afd12324b
  1. 4
      src/lib/elementary/elc_fileselector.c

@ -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) ||

Loading…
Cancel
Save