diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2006-08-15 21:27:04 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2006-08-15 21:27:04 +0000 |
commit | 1adc87a1df007a4d3e5d610b616dc77169ba097c (patch) | |
tree | 1fa889b07f6b7612013362d99f87f0dd0076af3b /apps/tree.c | |
parent | 99bb00bf252e53b5329f9a21fef77e8e6fed727f (diff) | |
download | rockbox-1adc87a1df007a4d3e5d610b616dc77169ba097c.tar.gz rockbox-1adc87a1df007a4d3e5d610b616dc77169ba097c.zip |
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.c | 22 |
1 files changed, 10 insertions, 12 deletions
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) | |||
615 | exit_func = true; | 615 | exit_func = true; |
616 | break; | 616 | break; |
617 | } | 617 | } |
618 | /* if we are in /, stop playback | 618 | /* if we are in /, nothing to do */ |
619 | (skip this and fall into tree_stop)*/ | ||
620 | if (tc.dirlevel != 0 || strcmp(currdir,"/")) | 619 | if (tc.dirlevel != 0 || strcmp(currdir,"/")) |
621 | { | ||
622 | if (id3db) | ||
623 | tagtree_exit(&tc); | ||
624 | else | ||
625 | if (ft_exit(&tc) == 3) | ||
626 | exit_func = true; | ||
627 | |||
628 | restore = true; | ||
629 | break; | 620 | break; |
630 | } | 621 | |
631 | /* else fall through */ | 622 | if (id3db) |
623 | tagtree_exit(&tc); | ||
624 | else | ||
625 | if (ft_exit(&tc) == 3) | ||
626 | exit_func = true; | ||
627 | |||
628 | restore = true; | ||
629 | break; | ||
632 | 630 | ||
633 | case ACTION_TREE_STOP: | 631 | case ACTION_TREE_STOP: |
634 | if (*tc.dirfilter < NUM_FILTER_MODES) | 632 | if (*tc.dirfilter < NUM_FILTER_MODES) |