diff options
author | Teruaki Kawashima <teru@rockbox.org> | 2010-10-25 13:55:34 +0000 |
---|---|---|
committer | Teruaki Kawashima <teru@rockbox.org> | 2010-10-25 13:55:34 +0000 |
commit | 36cd720e8eeffcb31592bff4def477cf783dd97e (patch) | |
tree | 576f9059495290b3de1b127c191daa4c5cd4db96 /apps | |
parent | 77129ad3ec7e1999a5177c8a49af64be78882566 (diff) |
do not reset last selected item after leaving the file browser when in root.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28360 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/root_menu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c index 92e0c66ff6..5a8d40f0b6 100644 --- a/apps/root_menu.c +++ b/apps/root_menu.c @@ -257,7 +257,8 @@ static int browser(void* param) { case GO_TO_FILEBROWSER: if (!get_current_file(last_folder, MAX_PATH) || - !strchr(&last_folder[1], '/')) + (!strchr(&last_folder[1], '/') && + global_settings.start_directory[1] != '\0')) { last_folder[0] = '/'; last_folder[1] = '\0'; |