forked from len0rd/rockbox
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;
|
exit_func = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* if we are in /, stop playback
|
/* if we are in /, nothing to do */
|
||||||
(skip this and fall into tree_stop)*/
|
|
||||||
if (tc.dirlevel != 0 || strcmp(currdir,"/"))
|
if (tc.dirlevel != 0 || strcmp(currdir,"/"))
|
||||||
{
|
|
||||||
if (id3db)
|
|
||||||
tagtree_exit(&tc);
|
|
||||||
else
|
|
||||||
if (ft_exit(&tc) == 3)
|
|
||||||
exit_func = true;
|
|
||||||
|
|
||||||
restore = true;
|
|
||||||
break;
|
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:
|
case ACTION_TREE_STOP:
|
||||||
if (*tc.dirfilter < NUM_FILTER_MODES)
|
if (*tc.dirfilter < NUM_FILTER_MODES)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue