From 657a2f3d1cae6fe436cd7eb5b3ef962f50d4c8c6 Mon Sep 17 00:00:00 2001 From: Robert Hak Date: Mon, 2 Dec 2002 04:46:19 +0000 Subject: correction to make 'playlists' display option work git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2895 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings_menu.c | 2 +- apps/tree.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'apps') diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 06fb9a757d..a7b95ba755 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -347,7 +347,7 @@ static bool dir_filter(void) str(LANG_FILTER_PLAYLIST) }; return set_option( str(LANG_FILTER), &global_settings.dirfilter, - names, 3, NULL ); + names, 4, NULL ); } static bool sort_case(void) diff --git a/apps/tree.c b/apps/tree.c index 645aab9c1c..dc2453c21c 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -249,8 +249,8 @@ static int showdir(char *path, int start) /* mark mp? and m3u files as such */ if ( !(dptr->attr & ATTR_DIRECTORY) && (len > 4) ) { if (!strcasecmp(&entry->d_name[len-4], ".mp3") || - (!strcasecmp(&entry->d_name[len-4], ".mp2")) || - (!strcasecmp(&entry->d_name[len-4], ".mpa"))) + (!strcasecmp(&entry->d_name[len-4], ".mp2")) || + (!strcasecmp(&entry->d_name[len-4], ".mpa"))) dptr->attr |= TREE_ATTR_MPA; else if (!strcasecmp(&entry->d_name[len-4], ".m3u")) dptr->attr |= TREE_ATTR_M3U; -- cgit v1.2.3