forked from enlightenment/efl
genlist: fixed dangling _calc_job bug.
Before calling _calc_job directly, the job should be removed. Because dangling job can be remained.
This commit is contained in:
parent
fc807ab7f6
commit
ec047e2f92
|
@ -2109,6 +2109,8 @@ _elm_genlist_pan_smart_calculate(Eo *obj EINA_UNUSED, void *_pd, va_list *list E
|
|||
|
||||
if (psd->wsd->pan_changed)
|
||||
{
|
||||
if (psd->wsd->calc_job) ecore_job_del(psd->wsd->calc_job);
|
||||
psd->wsd->calc_job = NULL;
|
||||
_calc_job(psd->wsd->obj);
|
||||
psd->wsd->pan_changed = EINA_FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue