mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-01-22 01:30:35 -05:00
Don't lock ourselves in on empty dirs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1101 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bef203cd88
commit
8b1aba8447
1 changed files with 2 additions and 11 deletions
13
apps/tree.c
13
apps/tree.c
|
|
@ -247,17 +247,6 @@ bool dirbrowse(char *root)
|
|||
|
||||
while(1) {
|
||||
button = button_get(true);
|
||||
if(!numentries) {
|
||||
switch(button) {
|
||||
case TREE_MENU:
|
||||
case TREE_PREV:
|
||||
/* let it go */
|
||||
break;
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
switch(button) {
|
||||
case TREE_EXIT:
|
||||
|
|
@ -287,6 +276,8 @@ bool dirbrowse(char *root)
|
|||
break;
|
||||
|
||||
case TREE_ENTER:
|
||||
if ( !numentries )
|
||||
break;
|
||||
if ((currdir[0]=='/') && (currdir[1]==0)) {
|
||||
snprintf(buf,sizeof(buf),"%s%s",currdir,
|
||||
dircacheptr[dircursor+start]->name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue