From 1e199cd25ef05794095951458ac2a3495da2357b Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Fri, 19 Oct 2007 06:11:13 +0000 Subject: 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 --- apps/tree.c | 4 ++-- 1 file 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) { -- cgit v1.1