From 196376c3c2b74a1f0f6f3040f833491d1b45e5f6 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 30 Aug 2005 07:52:36 +0000 Subject: Added ID3 database support for individual tracks in the context menu git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7421 a1c6a512-1295-4272-9138-f99709370657 --- apps/onplay.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/onplay.c') diff --git a/apps/onplay.c b/apps/onplay.c index 89a236bb11..76bc72a048 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -278,7 +278,7 @@ static bool playlist_options(void) pstart++; } - if (context == CONTEXT_TREE) + if (context == CONTEXT_TREE || context == CONTEXT_ID3DB) { if (audio_status() & AUDIO_STATUS_PLAY) { @@ -536,7 +536,8 @@ int onplay(char* file, int attr, int from) if (context == CONTEXT_WPS || context == CONTEXT_TREE || - context == CONTEXT_ID3DB) + ((context == CONTEXT_ID3DB) && + (attr & TREE_ATTR_MASK) == TREE_ATTR_MPA)) { items[i].desc = ID2P(LANG_PLAYLIST); items[i].function = playlist_options; -- cgit v1.2.3