From: Bluezery <ohpowel@gmail.com>
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 1 Nov 2011 02:35:40 +0000 (02:35 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 1 Nov 2011 02:35:40 +0000 (02:35 +0000)
Subject: [E-devel] [Patch] elm_map: add image loading error handling

I made a bug fix for elm_map.
When a downloaded image has an error, ,  elm_map removes a file and goes on
just like download succeeded .
However, it is not success, so it should be marked as FALSE for later retry.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@64598 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

AUTHORS
src/lib/elm_map.c

diff --git a/AUTHORS b/AUTHORS
index 1d4201c..ed2d5bd 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -46,3 +46,4 @@ Chanwook Jung <joey.jung@samsung.com>
 Hyoyoung Chang <hyoyoung.chang@samsung.com>
 Guillaume "Kuri" Friloux <guillaume.friloux@asp64.com>
 Kim Yunhan <spbear@gmail.com>
+Bluezery <ohpowel@gmail.com>
index 60ccc7c..df8f0d9 100644 (file)
@@ -1186,7 +1186,12 @@ _tile_update(Grid_Item *gi)
    gi->download = EINA_FALSE;
    evas_object_image_file_set(gi->img, gi->file, NULL);
    if (evas_object_image_load_error_get(gi->img) != EVAS_LOAD_ERROR_NONE)
-     ecore_file_remove(gi->file);
+     {
+        ERR("Image loading error (%s)", gi->file);
+        ecore_file_remove(gi->file);
+        gi->have = EINA_FALSE;
+        return;
+     }
 
    obj_rotate_zoom(gi->wd->obj, gi->img);
    evas_object_show(gi->img);