nikawhite pushed a commit to branch master.

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

commit a098ea0f3da5310f1e3d78315af72558c6830435
Author: Mykyta Biliavskyi <[email protected]>
Date:   Mon Sep 12 14:31:08 2016 +0300

    Edje_Edit: check returned value edje_edit_edje_file_save function.
    
    In edje_edit_group_copy() for case when save routine is failed
    still returned EINA_TRUE. Now will be returned result of save routine.
    
    @fix
    CID: 1362727
---
 src/lib/edje/edje_edit.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index 8784864..1ef59ab 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -1655,6 +1655,7 @@ edje_edit_group_copy(Evas_Object *obj, const char 
*group_name, const char *copy_
    int count, script_count;
    void *data;
    char **keys, **c;
+   Eina_Bool save_status = EINA_FALSE;
 
    GET_ED_OR_RETURN(EINA_FALSE);
    if (!ed->file || !ed->file->collection)
@@ -1747,11 +1748,12 @@ edje_edit_group_copy(Evas_Object *obj, const char 
*group_name, const char *copy_
         free(keys);
      }
 
-   _edje_edit_edje_file_save(eetf, ed->file);
+   save_status = _edje_edit_edje_file_save(eetf, ed->file);
+
    _edje_collection_free(ed->file, epc, de);
    eet_close(eetf);
 
-   return EINA_TRUE;
+   return save_status;
 }
 
 EAPI Eina_Bool

-- 


Reply via email to