From 7a5d4c6437168edc4c21bbb85c42c5f11655cc3d Mon Sep 17 00:00:00 2001 From: Viktor Kojouharov Date: Sun, 14 Nov 2010 02:20:57 +0000 Subject: [PATCH] loop the list when navigating SVN revision: 54544 --- src/bin/ephoto_flow_browser.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bin/ephoto_flow_browser.c b/src/bin/ephoto_flow_browser.c index a80c5a5..9930438 100644 --- a/src/bin/ephoto_flow_browser.c +++ b/src/bin/ephoto_flow_browser.c @@ -620,6 +620,8 @@ _next_entry(Ephoto_Flow_Browser *fb) if (!entry->is_dir) break; } + if (!entry) + entry = _first_entry_find(fb); if (entry) { DBG("next is '%s'", entry->path); @@ -642,6 +644,8 @@ _prev_entry(Ephoto_Flow_Browser *fb) if (!entry->is_dir) break; } + if (!entry) + entry = _last_entry_find(fb); if (entry) { DBG("prev is '%s'", entry->path);