Ephoto: Handle instances where a delete takes place in directories with only one image.
This commit is contained in:
parent
f76804a080
commit
b1fc28d881
|
@ -2428,8 +2428,11 @@ _entry_free(void *data, const Ephoto_Entry *entry)
|
||||||
|
|
||||||
if (entry == sb->entry)
|
if (entry == sb->entry)
|
||||||
{
|
{
|
||||||
_next_entry(sb);
|
|
||||||
elm_object_item_del(entry->item);
|
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…
Reference in New Issue