summaryrefslogtreecommitdiff
path: root/apps/filetree.c
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2011-04-30 11:00:26 +0000
committerMagnus Holmgren <magnushol@gmail.com>2011-04-30 11:00:26 +0000
commited2cfb8c1d2215fc6ac287dbf03bbd2847ec3ef3 (patch)
tree6e6239b3151cf14a6432941a5957e1452e1fc3a0 /apps/filetree.c
parent16e793f5d1d626e6506f2b172efa03f46fb0ed39 (diff)
downloadrockbox-ed2cfb8c1d2215fc6ac287dbf03bbd2847ec3ef3.zip
rockbox-ed2cfb8c1d2215fc6ac287dbf03bbd2847ec3ef3.tar.gz
rockbox-ed2cfb8c1d2215fc6ac287dbf03bbd2847ec3ef3.tar.bz2
rockbox-ed2cfb8c1d2215fc6ac287dbf03bbd2847ec3ef3.tar.xz
Don't (partially) apply changes to max entries in the file browser immediately. The setting affects a buffer that is allocated during boot, so code using that buffer should use the value that was in effect during boot. Add a note to the manual that a reboot is needed for the changes to be applied.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29798 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/filetree.c')
-rw-r--r--apps/filetree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/filetree.c b/apps/filetree.c
index 96fcc8a..eaaee96 100644
--- a/apps/filetree.c
+++ b/apps/filetree.c
@@ -285,7 +285,7 @@ int ft_load(struct tree_context* c, const char* tempdir)
c->dirsindir = 0;
c->dirfull = false;
- for ( i=0; i < global_settings.max_files_in_dir; i++ ) {
+ for ( i=0; i < c->dircache_count; i++ ) {
int len;
struct dirent *entry = readdir(dir);
struct dirinfo info;