summaryrefslogtreecommitdiff
path: root/apps/onplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index af35824c1e..89a236bb11 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -53,6 +53,7 @@
53#endif 53#endif
54#include "main_menu.h" 54#include "main_menu.h"
55#include "sound_menu.h" 55#include "sound_menu.h"
56#include "database.h"
56 57
57static int context; 58static int context;
58static char* selected_file = NULL; 59static char* selected_file = NULL;
@@ -556,9 +557,11 @@ int onplay(char* file, int attr, int from)
556 items[i].desc = ID2P(LANG_MENU_SHOW_ID3_INFO); 557 items[i].desc = ID2P(LANG_MENU_SHOW_ID3_INFO);
557 items[i].function = browse_id3; 558 items[i].function = browse_id3;
558 i++; 559 i++;
559 items[i].desc = ID2P(LANG_MENU_SET_RATING); 560 if(rundb_initialized) {
560 items[i].function = set_rating; 561 items[i].desc = ID2P(LANG_MENU_SET_RATING);
561 i++; 562 items[i].function = set_rating;
563 i++;
564 }
562 } 565 }
563 566
564#ifdef HAVE_MULTIVOLUME 567#ifdef HAVE_MULTIVOLUME