summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/elm_diskselector.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/elm_diskselector.c b/src/lib/elm_diskselector.c
index 8a00fffc1..89764b59c 100644
--- a/src/lib/elm_diskselector.c
+++ b/src/lib/elm_diskselector.c
@@ -359,13 +359,7 @@ _item_del_pre_hook(Elm_Object_Item *item)
359 { 359 {
360 if (sd->items) 360 if (sd->items)
361 { 361 {
362 dit = (Elm_Diskselector_Item *)eina_list_nth(sd->items, 0); 362 sd->selected_item = (Elm_Diskselector_Item *)eina_list_nth(sd->items, 0);
363
364 if (dit != it)
365 sd->selected_item = dit;
366 else
367 sd->selected_item = eina_list_nth(sd->items, 1);
368
369 _selected_item_indicate(sd->selected_item); 363 _selected_item_indicate(sd->selected_item);
370 } 364 }
371 else 365 else