summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Juyung Seo <juyung.seo@samsung.com>2013-11-21 14:26:39 +0900
committerDaniel Juyung Seo <juyung.seo@samsung.com>2013-11-21 14:27:15 +0900
commit342b108641d495ae43f4313feab3a59f170269ed (patch)
tree60b93f4fdbef5554652a8850b84dde57421861e9 /src
parent0a3f2f0e315789bd5be87d2205c306b20f660bc2 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/lib/elm_diskselector.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elm_diskselector.c b/src/lib/elm_diskselector.c
index 6135dd84f..be5eb4421 100644
--- a/src/lib/elm_diskselector.c
+++ b/src/lib/elm_diskselector.c
@@ -327,6 +327,8 @@ _item_del(Elm_Diskselector_Item *item)
327{ 327{
328 if (!item) return; 328 if (!item) return;
329 329
330 ELM_DISKSELECTOR_DATA_GET(WIDGET(item), sd);
331 sd->item_count -= 1;
330 eina_stringshare_del(item->label); 332 eina_stringshare_del(item->label);
331 333
332 if (item->icon) 334 if (item->icon)
@@ -371,7 +373,6 @@ _item_del_pre_hook(Elm_Object_Item *item)
371 } 373 }
372 374
373 _item_del(it); 375 _item_del(it);
374 sd->item_count -= 1;
375 376
376 if (sd->round) 377 if (sd->round)
377 { 378 {