From b1fc28d881203f9e89cabcf4837bbc1d1dc3ea76 Mon Sep 17 00:00:00 2001 From: Stephen Houston Date: Wed, 2 Dec 2015 19:55:53 -0600 Subject: [PATCH] Ephoto: Handle instances where a delete takes place in directories with only one image. --- src/bin/ephoto_single_browser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/ephoto_single_browser.c b/src/bin/ephoto_single_browser.c index ecc91cc..3e8f7f3 100644 --- a/src/bin/ephoto_single_browser.c +++ b/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); } }