genlist: unselect item if the select mode is display only or none.
@fix
This commit is contained in:
parent
28ac4ffe65
commit
a0b170c2a3
|
@ -7637,6 +7637,10 @@ _elm_genlist_item_select_mode_set(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it,
|
|||
|
||||
it->select_mode = mode;
|
||||
|
||||
if ((it->select_mode == ELM_OBJECT_SELECT_MODE_NONE) ||
|
||||
(it->select_mode == ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY))
|
||||
_item_unselect(it);
|
||||
|
||||
if (it->select_mode == ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY)
|
||||
{
|
||||
it->item->mincalcd = EINA_FALSE;
|
||||
|
|
Loading…
Reference in New Issue