elm_diskselector.c: reduce item_count number on _item_del. or reducing item_count could be skipped in some cases like elm_index_clear.

This fixes T508.
This commit is contained in:
Daniel Juyung Seo 2013-11-21 14:26:39 +09:00
parent 2920eda9e5
commit d88f919cad
1 changed files with 2 additions and 1 deletions

View File

@ -327,6 +327,8 @@ _item_del(Elm_Diskselector_Item *item)
{
if (!item) return;
ELM_DISKSELECTOR_DATA_GET(WIDGET(item), sd);
sd->item_count -= 1;
eina_stringshare_del(item->label);
if (item->icon)
@ -371,7 +373,6 @@ _item_del_pre_hook(Elm_Object_Item *item)
}
_item_del(it);
sd->item_count -= 1;
if (sd->round)
{