forked from enlightenment/efl
[gengrid] possible crash issue fixed.
Summary: reset show_it, bring_in_it and corresponding flags on item deletion Test Plan: delete item with animation and rotate the handset display. Reviewers: raster, cedric Subscribers: shilpasingh, godlytalias, govi, rajeshps Differential Revision: https://phab.enlightenment.org/D3672
This commit is contained in:
parent
6fec93c62d
commit
f420ed7707
|
@ -3789,6 +3789,17 @@ _elm_gengrid_item_del_not_serious(Elm_Gen_Item *it)
|
||||||
|
|
||||||
if (it->walking > 0) return;
|
if (it->walking > 0) return;
|
||||||
|
|
||||||
|
if (sd->show_it == eo_it)
|
||||||
|
{
|
||||||
|
sd->show_it = NULL;
|
||||||
|
sd->show_region = EINA_FALSE;
|
||||||
|
}
|
||||||
|
if (sd->bring_in_it == eo_it)
|
||||||
|
{
|
||||||
|
sd->bring_in_it = NULL;
|
||||||
|
sd->bring_in = EINA_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
if (it->selected)
|
if (it->selected)
|
||||||
sd->selected = eina_list_remove(sd->selected, eo_it);
|
sd->selected = eina_list_remove(sd->selected, eo_it);
|
||||||
if (sd->last_selected_item == eo_it)
|
if (sd->last_selected_item == eo_it)
|
||||||
|
|
Loading…
Reference in New Issue