summaryrefslogtreecommitdiffstats
path: root/apps/bookmark.c
diff options
context:
space:
mode:
authorHenrik Backe <henrik@backe.eu>2004-09-23 19:40:52 +0000
committerHenrik Backe <henrik@backe.eu>2004-09-23 19:40:52 +0000
commit72408f45535c7221c3ef7352fbe14ba5c705baf3 (patch)
tree6db80794cbfe33a2204c7174a84f5a4a38c4ba5e /apps/bookmark.c
parentd00bebae0a88f5320a2f1afc16b61b7d302f8306 (diff)
downloadrockbox-72408f45535c7221c3ef7352fbe14ba5c705baf3.tar.gz
rockbox-72408f45535c7221c3ef7352fbe14ba5c705baf3.tar.bz2
rockbox-72408f45535c7221c3ef7352fbe14ba5c705baf3.zip
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
Diffstat (limited to 'apps/bookmark.c')
-rw-r--r--apps/bookmark.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c
index c999504965..236b2e4cde 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;