diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/list.c | 2 | ||||
-rw-r--r-- | apps/tree.c | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index 94150176dc..164bfc8773 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c | |||
@@ -749,6 +749,8 @@ unsigned gui_synclist_do_button(struct gui_synclist * lists, unsigned button) | |||
749 | gui_synclist_draw(lists); | 749 | gui_synclist_draw(lists); |
750 | return ACTION_TREE_PGRIGHT; | 750 | return ACTION_TREE_PGRIGHT; |
751 | case ACTION_TREE_PGLEFT: | 751 | case ACTION_TREE_PGLEFT: |
752 | if (lists->gui_list[0].offset_position == 0) | ||
753 | return ACTION_STD_CANCEL; | ||
752 | gui_synclist_scroll_left(lists); | 754 | gui_synclist_scroll_left(lists); |
753 | gui_synclist_draw(lists); | 755 | gui_synclist_draw(lists); |
754 | return ACTION_TREE_PGLEFT; | 756 | return ACTION_TREE_PGLEFT; |
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: |