ggenlist: code refactoring.

don't do anything if same mode is applied.
This commit is contained in:
ChunEon Park 2015-01-05 15:03:37 +09:00
parent 9981b19303
commit 28ac4ffe65
1 changed files with 4 additions and 3 deletions

View File

@ -7631,10 +7631,11 @@ _elm_genlist_item_select_mode_set(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it,
ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
if (it->generation < sd->generation) return;
if (mode >= ELM_OBJECT_SELECT_MODE_MAX)
if ((mode >= ELM_OBJECT_SELECT_MODE_MAX) || (it->select_mode == mode))
return;
if (it->select_mode != mode)
it->select_mode = mode;
it->select_mode = mode;
if (it->select_mode == ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY)
{