Fix FS #6624 - remove useless menu items from the context menu in an empty directory

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12211 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-02-06 09:01:32 +00:00
parent d71b44cbd2
commit d18a68d93b

View file

@ -886,9 +886,9 @@ int onplay(char* file, int attr, int from)
i++;
}
if (context == CONTEXT_WPS ||
if (file && (context == CONTEXT_WPS ||
context == CONTEXT_TREE ||
context == CONTEXT_ID3DB)
context == CONTEXT_ID3DB))
{
items[i].desc = ID2P(LANG_PLAYLIST);
items[i].function = playlist_options;
@ -998,11 +998,13 @@ int onplay(char* file, int attr, int from)
items[i].desc = ID2P(LANG_CREATE_DIR);
items[i].function = create_dir;
i++;
if (file)
{
items[i].desc = ID2P(LANG_PROPERTIES);
items[i].function = properties;
i++;
}
}
if (context == CONTEXT_WPS)
{