From 76053a402e2e1ec3770e62e61baa96b0c4d5c2a3 Mon Sep 17 00:00:00 2001 From: learman Date: Tue, 22 Jan 2008 22:38:32 +0000 Subject: [PATCH] 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 --- apps/tree.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/tree.c b/apps/tree.c index 6ee242ba3..5c4b75275 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); } -- 2.11.4.GIT