From 86ca85bef7ed0f1f565ad79dde28060ba9877834 Mon Sep 17 00:00:00 2001 From: Dan Everton Date: Wed, 16 Aug 2006 04:31:37 +0000 Subject: 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 --- apps/tree.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) gui_synclist_set_title(&tree_lists, NULL); } } + else + { + /* This currently doesn't work too well in id3db so turn it off */ + gui_synclist_set_title(&tree_lists, NULL); + } gui_synclist_set_nb_items(&tree_lists, tc.filesindir); gui_synclist_set_icon_callback(&tree_lists, global_settings.show_icons?&tree_get_fileicon:NULL); @@ -519,6 +524,7 @@ static bool check_changed_id3mode(bool currmode) { curr_context=CONTEXT_TREE; ft_load(&tc, NULL); + reload_dir = true; } } return currmode; -- cgit v1.2.3