summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index e4237dc598..d58c05deb7 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -632,6 +632,7 @@ int dirbrowse()
632 if (returned_button == ACTION_STD_CANCEL) 632 if (returned_button == ACTION_STD_CANCEL)
633 button = ACTION_STD_CANCEL; 633 button = ACTION_STD_CANCEL;
634 634
635 tc.selected_item = gui_synclist_get_sel_pos(&tree_lists);
635 switch ( button ) { 636 switch ( button ) {
636 case ACTION_STD_OK: 637 case ACTION_STD_OK:
637 /* nothing to do if no files to display */ 638 /* nothing to do if no files to display */
@@ -933,7 +934,6 @@ int dirbrowse()
933 } 934 }
934 935
935 if(need_update) { 936 if(need_update) {
936 tc.selected_item = gui_synclist_get_sel_pos(&tree_lists);
937 need_update=false; 937 need_update=false;
938 if ( numentries > 0 ) { 938 if ( numentries > 0 ) {
939 /* Voice the file if changed */ 939 /* Voice the file if changed */