Ephoto: Handle instances where a delete takes place in directories with only one image.

v-1.6.0
Stephen Houston 7 years ago
parent f76804a080
commit b1fc28d881
  1. 5
      src/bin/ephoto_single_browser.c

@ -2428,8 +2428,11 @@ _entry_free(void *data, const Ephoto_Entry *entry)
if (entry == sb->entry)
{
_next_entry(sb);
elm_object_item_del(entry->item);
if (eina_list_count(sb->ephoto->entries) <= 1)
evas_object_smart_callback_call(sb->main, "back", NULL);
else
_next_entry(sb);
}
}

Loading…
Cancel
Save