diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2006-09-17 08:30:17 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2006-09-17 08:30:17 +0000 |
commit | 4553069f9dc1883072a9e1dee130235d4a970075 (patch) | |
tree | 500da5416bfa6f22fc42e3a97f52c9c9c589f770 /apps/tree.c | |
parent | dd89514ef9c0ac3460de9ecb5d9a38f03b513961 (diff) | |
download | rockbox-4553069f9dc1883072a9e1dee130235d4a970075.tar.gz rockbox-4553069f9dc1883072a9e1dee130235d4a970075.zip |
holding left in the tree will quickly get back to root, as long as the text is in the left-most position (like before)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10965 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c index 50ad92239e..1f68a8560b 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -549,7 +549,7 @@ static bool dirbrowse(void) | |||
549 | int numentries=0; | 549 | int numentries=0; |
550 | char buf[MAX_PATH]; | 550 | char buf[MAX_PATH]; |
551 | int lasti = -1; | 551 | int lasti = -1; |
552 | unsigned button; | 552 | unsigned button, returned_button; |
553 | bool reload_root = false; | 553 | bool reload_root = false; |
554 | int lastfilter = *tc.dirfilter; | 554 | int lastfilter = *tc.dirfilter; |
555 | bool lastsortcase = global_settings.sort_case; | 555 | bool lastsortcase = global_settings.sort_case; |
@@ -619,7 +619,10 @@ static bool dirbrowse(void) | |||
619 | } | 619 | } |
620 | #endif | 620 | #endif |
621 | button = get_action(CONTEXT_TREE,HZ/5); | 621 | button = get_action(CONTEXT_TREE,HZ/5); |
622 | need_update = gui_synclist_do_button(&tree_lists, button); | 622 | returned_button = gui_synclist_do_button(&tree_lists, button); |
623 | need_update = (bool)returned_button; | ||
624 | if (returned_button == ACTION_STD_CANCEL) | ||
625 | button = ACTION_STD_CANCEL; | ||
623 | 626 | ||
624 | switch ( button ) { | 627 | switch ( button ) { |
625 | case ACTION_STD_OK: | 628 | case ACTION_STD_OK: |