forked from enlightenment/efl
From: Bluezery <ohpowel@gmail.com>
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. SVN revision: 64598
This commit is contained in:
parent
497e51e475
commit
6632d5a21f
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue