summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorKevin Ferrare <kevin@rockbox.org>2005-11-09 01:17:57 +0000
committerKevin Ferrare <kevin@rockbox.org>2005-11-09 01:17:57 +0000
commitf7c97522a874cf8136b8e5e014b1a7abb47bc7fc (patch)
treea026afc66a257c065b9308e2436158e76a6b9212 /apps/tree.c
parent0b00108c3eab73420c5b03cbe603b865276e13e8 (diff)
downloadrockbox-f7c97522a874cf8136b8e5e014b1a7abb47bc7fc.zip
rockbox-f7c97522a874cf8136b8e5e014b1a7abb47bc7fc.tar.gz
rockbox-f7c97522a874cf8136b8e5e014b1a7abb47bc7fc.tar.bz2
rockbox-f7c97522a874cf8136b8e5e014b1a7abb47bc7fc.tar.xz
Fixed the icon for unknown file types on the archos Player, and the bug when removing the last file on the screen in filetree, added some code for playlists integration with multi-screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7800 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index c1b53cf..0e91a58 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -337,6 +337,9 @@ static int update_dir(void)
}
}
gui_synclist_set_nb_items(&tree_lists, tc.filesindir);
+ if( tc.selected_item >= tc.filesindir)
+ tc.selected_item=tc.filesindir-1;
+
gui_synclist_select_item(&tree_lists, tc.selected_item);
gui_synclist_draw(&tree_lists);
gui_syncstatusbar_draw(&statusbars, true);
@@ -799,7 +802,6 @@ static bool dirbrowse(void)
}
onplay_result = onplay(buf, attr, curr_context);
}
-
switch (onplay_result)
{
case ONPLAY_OK: