summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-05-15 06:42:02 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-05-15 06:42:02 +0000
commit6ddc38c02179427a82fc49a49c984bdaa4f39b99 (patch)
tree248473b1771f654fcf1d95083f074e79e97ecb88 /apps
parent670559f86836cd4036b8ae31e0cc65bd65ecf814 (diff)
downloadrockbox-6ddc38c02179427a82fc49a49c984bdaa4f39b99.tar.gz
rockbox-6ddc38c02179427a82fc49a49c984bdaa4f39b99.zip
Accept FS#7170 - fix a bug with random folder advance
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13390 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index ba98648c2e..7b1b91e123 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -1391,6 +1391,7 @@ static int get_next_dir(char *dir, bool is_forward, bool recursion)
char buffer[MAX_PATH];
int folder_count = 0,i;
srand(current_tick);
+ *(tc->dirfilter) = SHOW_MUSIC;
if (fd >= 0)
{
read(fd,&folder_count,sizeof(int));
@@ -1404,6 +1405,8 @@ static int get_next_dir(char *dir, bool is_forward, bool recursion)
}
strcpy(dir,buffer);
close(fd);
+ *(tc->dirfilter) = dirfilter;
+ reload_directory();
return 0;
}
}