summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2008-01-22 22:38:32 +0000
committerMagnus Holmgren <magnushol@gmail.com>2008-01-22 22:38:32 +0000
commit9d6f6aa5fd314057adef3a3c6c5d4377df8c5915 (patch)
tree9fbb34964b6af1b2a48eef1500309a3078844ca3
parent5570ab27136f061b86df0aa1b8ef51c280c01419 (diff)
downloadrockbox-9d6f6aa5fd314057adef3a3c6c5d4377df8c5915.zip
rockbox-9d6f6aa5fd314057adef3a3c6c5d4377df8c5915.tar.gz
rockbox-9d6f6aa5fd314057adef3a3c6c5d4377df8c5915.tar.bz2
rockbox-9d6f6aa5fd314057adef3a3c6c5d4377df8c5915.tar.xz
When automatically loading the last bookmark and the file couldn't be found, nothing much seemed to happen. Show 'Nothing to resume' in this case, so the user has a clue that something went wrong. Should perhaps use a different message in this case.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16145 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/tree.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 6ee242b..5c4b752 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -1145,7 +1145,13 @@ void bookmark_play(char *resume_file, int index, int offset, int seed,
if (i < playlist_amount())
index = i;
else
+ {
+ /* File not found, so bail out. Maybe not the best
+ * message; perhaps "Bookmarked file not found"?
+ */
+ gui_syncsplash(HZ*2, ID2P(LANG_NOTHING_TO_RESUME));
return;
+ }
}
playlist_start(index,offset);
}