okra pushed a commit to branch master.

http://git.enlightenment.org/apps/ephoto.git/commit/?id=b1fc28d881203f9e89cabcf4837bbc1d1dc3ea76

commit b1fc28d881203f9e89cabcf4837bbc1d1dc3ea76
Author: Stephen Houston <smhousto...@gmail.com>
Date:   Wed Dec 2 19:55:53 2015 -0600

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

-- 


Reply via email to