felipealmeida pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=963d2af9742018059a91a4cfc403e61bcae2e3d0

commit 963d2af9742018059a91a4cfc403e61bcae2e3d0
Author: Larry Jr <larry....@gmail.com>
Date:   Tue Jun 14 19:37:48 2016 -0300

    elementary: fixed wrong error msg in fileselector
---
 src/lib/elementary/elc_fileselector.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/lib/elementary/elc_fileselector.c 
b/src/lib/elementary/elc_fileselector.c
index ae70661..ed40636 100644
--- a/src/lib/elementary/elc_fileselector.c
+++ b/src/lib/elementary/elc_fileselector.c
@@ -1666,8 +1666,7 @@ _resource_created_then(void *data, void *values)
        !_iterator_next_value_get(value_itt, &dir) ||
        !_iterator_next_value_get(value_itt, &size) ||
        !_iterator_next_value_get(value_itt, &mtime) ||
-       !_iterator_next_value_get(value_itt, &mime_type) ||
-       !_filter_child(sd, path, filename, dir, mime_type))
+       !_iterator_next_value_get(value_itt, &mime_type))
      {
         ERR("missing Efl.Model data");
         eo_unref(it_data->model);
@@ -1675,6 +1674,13 @@ _resource_created_then(void *data, void *values)
         goto end;
      }
 
+   if (!_filter_child(sd, path, filename, dir, mime_type))
+     {
+        eo_unref(it_data->model);
+        free(it_data);
+        goto end;
+     }
+
    it_data->path = eina_stringshare_add(path);
    it_data->filename = eina_stringshare_add(filename);
    it_data->size = size;

-- 


Reply via email to