loop the list when navigating

SVN revision: 54544
This commit is contained in:
Viktor Kojouharov 2010-11-14 02:20:57 +00:00
parent ae7ffbd809
commit 7a5d4c6437
1 changed files with 4 additions and 0 deletions

View File

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