summaryrefslogtreecommitdiff
path: root/apps/tree.c
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 /apps/tree.c
parent475be662a708f11f235660c7826df908299af4c6 (diff)
downloadrockbox-86ca85bef7ed0f1f565ad79dde28060ba9877834.zip
rockbox-86ca85bef7ed0f1f565ad79dde28060ba9877834.tar.gz
rockbox-86ca85bef7ed0f1f565ad79dde28060ba9877834.tar.bz2
rockbox-86ca85bef7ed0f1f565ad79dde28060ba9877834.tar.xz
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
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 1e3a833..53797ba 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;