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
This commit is contained in:
Teruaki Kawashima 2010-10-25 13:55:34 +00:00
parent 77129ad3ec
commit 36cd720e8e

View file

@ -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';