summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-10-19 06:11:13 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-10-19 06:11:13 +0000
commit1e199cd25ef05794095951458ac2a3495da2357b (patch)
tree5f2c0fbd155310a1b7610485b90bc663d911b77a
parent63c3f98a98b007bedaba682654bf8ae5802a6de7 (diff)
downloadrockbox-1e199cd25ef05794095951458ac2a3495da2357b.zip
rockbox-1e199cd25ef05794095951458ac2a3495da2357b.tar.gz
rockbox-1e199cd25ef05794095951458ac2a3495da2357b.tar.bz2
rockbox-1e199cd25ef05794095951458ac2a3495da2357b.tar.xz
dirbrowse should return a GO_TO_* value, not false on error (fixes the problem where browsing plugins/fons/etc dirs from the menu would put you back n the filebrowser if the folder was empty instead of back in the menu)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15198 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 74a6134..8146b52 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -581,12 +581,12 @@ static int dirbrowse()
start_wps = false;
numentries = update_dir();
if (numentries == -1)
- return false; /* currdir is not a directory */
+ return GO_TO_PREVIOUS; /* currdir is not a directory */
if (*tc.dirfilter > NUM_FILTER_MODES && numentries==0)
{
gui_syncsplash(HZ*2, ID2P(LANG_NO_FILES));
- return false; /* No files found for rockbox_browser() */
+ return GO_TO_PREVIOUS; /* No files found for rockbox_browser() */
}
while(1) {