cancel previous request, if any.

SVN revision: 53216
This commit is contained in:
Gustavo Sverzut Barbieri 2010-10-08 22:43:17 +00:00
parent 3bdda23c70
commit e7924d7fac
1 changed files with 7 additions and 0 deletions

View File

@ -244,6 +244,13 @@ _finished_thumb_cb(void *data, Ethumb_Client *c __UNUSED__, int id, const char *
static void
_thumb_apply(Widget_Data *wd)
{
if (wd->thumb.id > 0)
{
ethumb_client_generate_cancel
(_elm_ethumb_client, wd->thumb.id, NULL, NULL, NULL);
wd->thumb.id = -1;
}
ethumb_client_file_set(_elm_ethumb_client, wd->file, wd->key);
if (ethumb_client_thumb_exists(_elm_ethumb_client))
{