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

This commit is contained in:
Stephen Houston 2015-12-02 19:55:53 -06:00
parent f76804a080
commit b1fc28d881
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}
}