From 1adc87a1df007a4d3e5d610b616dc77169ba097c Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 15 Aug 2006 21:27:04 +0000 Subject: Restored the old behaviour of TREE_EXIT git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10594 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'apps/tree.c') diff --git a/apps/tree.c b/apps/tree.c index 34d5d0b1bb..8de23bd1f5 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) -- cgit v1.2.3