vitorsousa pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=87fec804130a23ca55db0574c4404228a5b1459e

commit 87fec804130a23ca55db0574c4404228a5b1459e
Author: Vitor Sousa <[email protected]>
Date:   Fri Sep 23 11:32:46 2016 -0300

    eio model: use empty mime type when efreet is unable to determine it
    
    FIX T4502
    
    @fix
---
 src/lib/eio/eio_model.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/eio/eio_model.c b/src/lib/eio/eio_model.c
index 40663f8..300000b 100644
--- a/src/lib/eio/eio_model.c
+++ b/src/lib/eio/eio_model.c
@@ -323,8 +323,8 @@ _eio_model_efl_model_property_get(Eo *obj EINA_UNUSED, 
Eio_Model_Data *priv, con
         value = efreet_mime_type_get(priv->path);
         if (value == NULL)
           {
-             eina_promise_owner_error_set(promise, EFL_MODEL_ERROR_NOT_FOUND);
-             return rpromise;
+             value = "";
+             WRN("could not get mime type for: %s", priv->path);
           }
         property_name = EIO_MODEL_PROP_MIME_TYPE;
      }

-- 


Reply via email to