summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c7
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: