summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-03-13 14:51:20 -0700
committerCedric BAIL <cedric.bail@free.fr>2019-03-27 15:03:04 -0700
commita947d8e5b1801fe5831a20c159ee3140d0ba9f25 (patch)
tree48c69a008e69355b0adb3dc58ff5b2d4bb171239
parent8f8082bf7d476cb2d245b9ac3012c9c6754457e8 (diff)
eio: path and filename property should always remind accessible even in case of error.
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8335
-rw-r--r--src/lib/eio/efl_io_model.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eio/efl_io_model.c b/src/lib/eio/efl_io_model.c
index 1e80b98..44bd69d 100644
--- a/src/lib/eio/efl_io_model.c
+++ b/src/lib/eio/efl_io_model.c
@@ -605,6 +605,7 @@ _property_mime_type_cb(const Eo *obj, Efl_Io_Model_Data *pd)
605{ 605{
606 if (pd->mime_type) 606 if (pd->mime_type)
607 return eina_value_string_new(pd->mime_type); 607 return eina_value_string_new(pd->mime_type);
608 if (pd->error) return eina_value_error_new(pd->error);
608 609
609 _eio_build_mime(obj, pd); 610 _eio_build_mime(obj, pd);
610 return eina_value_error_new(EAGAIN); 611 return eina_value_error_new(EAGAIN);
@@ -640,7 +641,6 @@ _efl_io_model_efl_model_property_get(const Eo *obj, Efl_Io_Model_Data *pd, const
640 unsigned int i; 641 unsigned int i;
641 642
642 if (!property) return NULL; 643 if (!property) return NULL;
643 if (pd->error) return eina_value_error_new(pd->error);
644 644
645 for (i = 0; i < EINA_C_ARRAY_LENGTH(properties); ++i) 645 for (i = 0; i < EINA_C_ARRAY_LENGTH(properties); ++i)
646 if (property == properties[i].name || 646 if (property == properties[i].name ||