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 | |
parent | 77129ad3ec7e1999a5177c8a49af64be78882566 (diff) | |
download | rockbox-36cd720e8eeffcb31592bff4def477cf783dd97e.tar.gz rockbox-36cd720e8eeffcb31592bff4def477cf783dd97e.zip |
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
-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) | |||
257 | { | 257 | { |
258 | case GO_TO_FILEBROWSER: | 258 | case GO_TO_FILEBROWSER: |
259 | if (!get_current_file(last_folder, MAX_PATH) || | 259 | if (!get_current_file(last_folder, MAX_PATH) || |
260 | !strchr(&last_folder[1], '/')) | 260 | (!strchr(&last_folder[1], '/') && |
261 | global_settings.start_directory[1] != '\0')) | ||
261 | { | 262 | { |
262 | last_folder[0] = '/'; | 263 | last_folder[0] = '/'; |
263 | last_folder[1] = '\0'; | 264 | last_folder[1] = '\0'; |