summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Everton <dan@iocaine.org>2006-08-16 04:31:37 +0000
committerDan Everton <dan@iocaine.org>2006-08-16 04:31:37 +0000
commit86ca85bef7ed0f1f565ad79dde28060ba9877834 (patch)
treed40c45c50b3f763830d9c5b7ca95cb509d659259
parent475be662a708f11f235660c7826df908299af4c6 (diff)
downloadrockbox-86ca85bef7ed0f1f565ad79dde28060ba9877834.tar.gz
rockbox-86ca85bef7ed0f1f565ad79dde28060ba9877834.zip
Reload directory on switching out of ID3 Database view. Stops the file browser from crashing in the sim and may fix FS#5521. Also turn off the list title in ID3 DB view.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10604 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/tree.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 1e3a833d51..53797baa40 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -359,6 +359,11 @@ static int update_dir(void)
359 gui_synclist_set_title(&tree_lists, NULL); 359 gui_synclist_set_title(&tree_lists, NULL);
360 } 360 }
361 } 361 }
362 else
363 {
364 /* This currently doesn't work too well in id3db so turn it off */
365 gui_synclist_set_title(&tree_lists, NULL);
366 }
362 gui_synclist_set_nb_items(&tree_lists, tc.filesindir); 367 gui_synclist_set_nb_items(&tree_lists, tc.filesindir);
363 gui_synclist_set_icon_callback(&tree_lists, 368 gui_synclist_set_icon_callback(&tree_lists,
364 global_settings.show_icons?&tree_get_fileicon:NULL); 369 global_settings.show_icons?&tree_get_fileicon:NULL);
@@ -519,6 +524,7 @@ static bool check_changed_id3mode(bool currmode)
519 { 524 {
520 curr_context=CONTEXT_TREE; 525 curr_context=CONTEXT_TREE;
521 ft_load(&tc, NULL); 526 ft_load(&tc, NULL);
527 reload_dir = true;
522 } 528 }
523 } 529 }
524 return currmode; 530 return currmode;