summaryrefslogtreecommitdiffstats
path: root/apps/bookmark.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-04-05 02:50:43 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-04-05 02:50:43 +0000
commitec7ca33a0c8073d12738f958dbfdff5fd39efc32 (patch)
tree06b7a7c008ec739487aab78958f90b35fd0d17e2 /apps/bookmark.c
parent29e18caacff0fe07736c6652ec75267fce6c9aff (diff)
downloadrockbox-ec7ca33a0c8073d12738f958dbfdff5fd39efc32.tar.gz
rockbox-ec7ca33a0c8073d12738f958dbfdff5fd39efc32.tar.bz2
rockbox-ec7ca33a0c8073d12738f958dbfdff5fd39efc32.zip
Fix the root menu for any targets without a radio (we are using #if not #ifdef for CONFIG_TUNER). Fixes the bookmark issue in FS#6965)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13027 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/bookmark.c')
-rw-r--r--apps/bookmark.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c
index a86e2a6504..b5c0e4a148 100644
--- a/apps/bookmark.c
+++ b/apps/bookmark.c
@@ -501,6 +501,11 @@ static char* select_bookmark(const char* bookmark_file_name)
#endif
bookmark_count = get_bookmark_count(bookmark_file_name);
+ if (bookmark_count < 1) /* error opening file, or empty file */
+ {
+ gui_syncsplash(HZ, str(LANG_BOOKMARK_LOAD_EMPTY));
+ return NULL;
+ }
action_signalscreenchange();
while(true)
{