summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/onplay.c9
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