elm_diskselector.c: reduce item_count number on _item_del. or reducing item_count...
authorDaniel Juyung Seo <juyung.seo@samsung.com>
Thu, 21 Nov 2013 05:26:39 +0000 (14:26 +0900)
committerDaniel Juyung Seo <juyung.seo@samsung.com>
Thu, 21 Nov 2013 05:27:15 +0000 (14:27 +0900)
This fixes T508.

src/lib/elm_diskselector.c

index 6135dd8..be5eb44 100644 (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)
      {