diff options
| author | Michiel Van Der Kolk <not.valid@email.address> | 2005-07-08 20:24:19 +0000 |
|---|---|---|
| committer | Michiel Van Der Kolk <not.valid@email.address> | 2005-07-08 20:24:19 +0000 |
| commit | c4b31b0ddfb38921fa8c7eacfdf78bcce25ca8b8 (patch) | |
| tree | 565f947ef9957e391e642406bde778d281dfd7a2 /apps | |
| parent | 5d9e0536ea8b4caea8236d74e1ed9532ef151517 (diff) | |
| download | rockbox-c4b31b0ddfb38921fa8c7eacfdf78bcce25ca8b8.zip rockbox-c4b31b0ddfb38921fa8c7eacfdf78bcce25ca8b8.tar.gz rockbox-c4b31b0ddfb38921fa8c7eacfdf78bcce25ca8b8.tar.bz2 rockbox-c4b31b0ddfb38921fa8c7eacfdf78bcce25ca8b8.tar.xz | |
Disabled set rating option when the runtime database isn't working.. to avoid confusion.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7077 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/onplay.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/onplay.c b/apps/onplay.c index af35824..89a236b 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -53,6 +53,7 @@ #endif #include "main_menu.h" #include "sound_menu.h" +#include "database.h" static int context; static char* selected_file = NULL; @@ -556,9 +557,11 @@ int onplay(char* file, int attr, int from) items[i].desc = ID2P(LANG_MENU_SHOW_ID3_INFO); items[i].function = browse_id3; i++; - items[i].desc = ID2P(LANG_MENU_SET_RATING); - items[i].function = set_rating; - i++; + if(rundb_initialized) { + items[i].desc = ID2P(LANG_MENU_SET_RATING); + items[i].function = set_rating; + i++; + } } #ifdef HAVE_MULTIVOLUME |