summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/tree.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/apps/tree.c b/apps/tree.c
index a8eb01e..e50a4ef 100644
--- a/apps/tree.c
+++ b/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);