From 72408f45535c7221c3ef7352fbe14ba5c705baf3 Mon Sep 17 00:00:00 2001 From: Henrik Backe Date: Thu, 23 Sep 2004 19:40:52 +0000 Subject: 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 --- apps/bookmark.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/bookmark.c b/apps/bookmark.c index c999504..236b2e4 100644 --- a/apps/bookmark.c +++ b/apps/bookmark.c @@ -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; -- cgit v1.1