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:
Linus Nielsen Feltzing 2006-08-15 21:27:04 +00:00
parent 99bb00bf25
commit 1adc87a1df

View file

@ -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)