forwardport previous commit for genlist fixing

SVN revision: 81790
This commit is contained in:
Mike Blumenkrantz 2012-12-28 09:51:40 +00:00
parent 2b6e8f8384
commit 3abf0ce65a
3 changed files with 12 additions and 5 deletions

View File

@ -853,3 +853,7 @@
2012-12-27 Jiyoun Park (jypark)
* elm_photocam returns file_set error properly.
2012-12-28 Mike Blumenkrantz
* Fix bug where genlist would delete items added during selection callback if a clear was queued

View File

@ -105,6 +105,7 @@ Fixes:
* Fix the image to show the image right now if the image preloading is disabled.
* Fix typo from elm_plug signal "image.deleted", should be "image,deleted".
* Fix photocam returns file set error correctly.
* Fix bug where genlist would delete items added during selection callback if a clear was queued
Removals:

View File

@ -4854,13 +4854,15 @@ _elm_genlist_clear(Evas_Object *obj,
}
sd->clear_me = EINA_FALSE;
sd->pan_changed = EINA_TRUE;
if (sd->calc_job)
if (!sd->queue)
{
ecore_job_del(sd->calc_job);
sd->calc_job = NULL;
if (sd->calc_job)
{
ecore_job_del(sd->calc_job);
sd->calc_job = NULL;
}
_clear(sd);
}
if (sd->selected) sd->selected = eina_list_free(sd->selected);
_clear(sd);
sd->pan_x = 0;
sd->pan_y = 0;
sd->minw = 0;