diff options
Diffstat (limited to 'apps/onplay.c')
-rw-r--r-- | apps/onplay.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/onplay.c b/apps/onplay.c index 9f38b32fb4..ad71f7302e 100644 --- a/apps/onplay.c +++ b/apps/onplay.c | |||
@@ -967,9 +967,9 @@ MENUITEM_FUNCTION(rating_item, 0, ID2P(LANG_MENU_SET_RATING), | |||
967 | static bool view_cue(void) | 967 | static bool view_cue(void) |
968 | { | 968 | { |
969 | struct mp3entry* id3 = audio_current_track(); | 969 | struct mp3entry* id3 = audio_current_track(); |
970 | if(id3 && cuesheet_is_enabled() && id3->cuesheet_type) | 970 | if(id3 && id3->cuesheet) |
971 | { | 971 | { |
972 | browse_cuesheet(curr_cue); | 972 | browse_cuesheet(id3->cuesheet); |
973 | } | 973 | } |
974 | return false; | 974 | return false; |
975 | } | 975 | } |
@@ -981,8 +981,8 @@ static int view_cue_item_callback(int action, | |||
981 | switch (action) | 981 | switch (action) |
982 | { | 982 | { |
983 | case ACTION_REQUEST_MENUITEM: | 983 | case ACTION_REQUEST_MENUITEM: |
984 | if (!selected_file || !cuesheet_is_enabled() | 984 | if (!selected_file |
985 | || !id3 || !id3->cuesheet_type) | 985 | || !id3 || !id3->cuesheet) |
986 | return ACTION_EXIT_MENUITEM; | 986 | return ACTION_EXIT_MENUITEM; |
987 | break; | 987 | break; |
988 | } | 988 | } |