summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-12-21 09:58:11 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-12-21 09:58:11 +0000
commitff2e9bdf7244d9b0d334ac6456d85498068a7797 (patch)
treeb9a845a7aec5a9fb96dc72c6e43f3dcb5c47e0af
parentff59965d7fadcbafb8eadee55c6c7a0a65d6ca94 (diff)
downloadrockbox-ff2e9bdf7244d9b0d334ac6456d85498068a7797.tar.gz
rockbox-ff2e9bdf7244d9b0d334ac6456d85498068a7797.zip
fix FS#9687 - 'set song rating' should not be shown if the DB isnt useable
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19523 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/onplay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index 234f3cc408..42924a18a0 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -966,7 +966,8 @@ static int ratingitem_callback(int action,const struct menu_item_ex *this_item)
966 switch (action) 966 switch (action)
967 { 967 {
968 case ACTION_REQUEST_MENUITEM: 968 case ACTION_REQUEST_MENUITEM:
969 if (!selected_file || !global_settings.runtimedb) 969 if (!selected_file || !global_settings.runtimedb ||
970 !tagcache_is_usable())
970 return ACTION_EXIT_MENUITEM; 971 return ACTION_EXIT_MENUITEM;
971 break; 972 break;
972 } 973 }