forked from enlightenment/efl
Elementary Map: check status of ecore_file_download result
SVN revision: 61515
This commit is contained in:
parent
5fee627ce2
commit
43bce580a5
|
@ -1251,7 +1251,6 @@ _tile_update(Grid_Item *gi)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_tile_downloaded(void *data, const char *file __UNUSED__, int status)
|
_tile_downloaded(void *data, const char *file __UNUSED__, int status)
|
||||||
{
|
{
|
||||||
|
@ -1260,10 +1259,9 @@ _tile_downloaded(void *data, const char *file __UNUSED__, int status)
|
||||||
gi->download = EINA_FALSE;
|
gi->download = EINA_FALSE;
|
||||||
gi->job = NULL;
|
gi->job = NULL;
|
||||||
|
|
||||||
DBG("DOWNLOAD done %s", gi->file);
|
if ((gi->want) && (status == 200)) _tile_update(gi);
|
||||||
if ((gi->want) && (!status)) _tile_update(gi);
|
|
||||||
|
|
||||||
if (status)
|
if (status != 200)
|
||||||
{
|
{
|
||||||
DBG("Download failed %s (%d) ", gi->file, status);
|
DBG("Download failed %s (%d) ", gi->file, status);
|
||||||
ecore_file_remove(gi->file);
|
ecore_file_remove(gi->file);
|
||||||
|
@ -1272,6 +1270,7 @@ _tile_downloaded(void *data, const char *file __UNUSED__, int status)
|
||||||
gi->wd->finish_num++;
|
gi->wd->finish_num++;
|
||||||
|
|
||||||
evas_object_smart_callback_call(gi->wd->obj, SIG_DOWNLOADED, NULL);
|
evas_object_smart_callback_call(gi->wd->obj, SIG_DOWNLOADED, NULL);
|
||||||
|
DBG("DOWNLOAD done %s", gi->file);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Grid *
|
static Grid *
|
||||||
|
|
Loading…
Reference in New Issue