Show the second (instead of the last) bookmark after deleting the first one

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5113 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Henrik Backe 2004-09-23 19:40:52 +00:00
parent d00bebae0a
commit 72408f4553

View file

@ -627,7 +627,10 @@ static char* select_bookmark(const char* bookmark_file_name)
while(true)
{
if(bookmark_id < 0)
bookmark_id = bookmark_count -1;
{
bookmark_id = 0;
bookmark_id_prev = -1;
}
if(bookmark_id == bookmark_count)
bookmark_id = 0;