Restored the old behaviour of TREE_EXIT
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10594 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
99bb00bf25
commit
1adc87a1df
1 changed files with 10 additions and 12 deletions
22
apps/tree.c
22
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)
|
||||
|
|
Loading…
Reference in a new issue