summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-08-15 21:27:04 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-08-15 21:27:04 +0000
commit1adc87a1df007a4d3e5d610b616dc77169ba097c (patch)
tree1fa889b07f6b7612013362d99f87f0dd0076af3b /apps/tree.c
parent99bb00bf252e53b5329f9a21fef77e8e6fed727f (diff)
downloadrockbox-1adc87a1df007a4d3e5d610b616dc77169ba097c.zip
rockbox-1adc87a1df007a4d3e5d610b616dc77169ba097c.tar.gz
rockbox-1adc87a1df007a4d3e5d610b616dc77169ba097c.tar.bz2
rockbox-1adc87a1df007a4d3e5d610b616dc77169ba097c.tar.xz
Restored the old behaviour of TREE_EXIT
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10594 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 34d5d0b..8de23bd 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -615,20 +615,18 @@ static bool dirbrowse(void)
exit_func = true;
break;
}
- /* if we are in /, stop playback
- (skip this and fall into tree_stop)*/
+ /* if we are in /, nothing to do */
if (tc.dirlevel != 0 || strcmp(currdir,"/"))
- {
- if (id3db)
- tagtree_exit(&tc);
- else
- if (ft_exit(&tc) == 3)
- exit_func = true;
-
- restore = true;
break;
- }
- /* else fall through */
+
+ if (id3db)
+ tagtree_exit(&tc);
+ else
+ if (ft_exit(&tc) == 3)
+ exit_func = true;
+
+ restore = true;
+ break;
case ACTION_TREE_STOP:
if (*tc.dirfilter < NUM_FILTER_MODES)