diff options
author | phelin <phelin> | 2008-02-19 00:38:51 +0000 |
---|---|---|
committer | phelin <phelin> | 2008-02-19 00:38:51 +0000 |
commit | 351111a062662ba136cf29eba36edbbe4336b9c1 (patch) | |
tree | ac6bfd4b6d8218ae47fced10d9466c19181c3f45 | |
parent | 09610ba6b588479cb632f6a6e1f8974c7c06dbd0 (diff) | |
download | xineliboutput-351111a062662ba136cf29eba36edbbe4336b9c1.tar.gz xineliboutput-351111a062662ba136cf29eba36edbbe4336b9c1.tar.bz2 |
Fix returning to the previous directory after playing a ISO-file.
-rw-r--r-- | menu.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: menu.c,v 1.44 2008-01-01 08:25:02 phintuka Exp $ + * $Id: menu.c,v 1.45 2008-02-19 00:38:51 phelin Exp $ * */ @@ -287,7 +287,10 @@ eOSState cMenuBrowseFiles::Open(bool ForceOpen, bool Parent, bool Queue) cString f = cString::sprintf("%s%s/%s", GetCurrent()->IsDvd() ? "dvd:" : "", m_CurrentDir, GetCurrent()->Name()); - strn0cpy(m_ConfigLastDir, f, sizeof(xc.browse_files_dir)); + if (GetCurrent()->IsDvd()) + strn0cpy(m_ConfigLastDir, m_CurrentDir, sizeof(xc.browse_files_dir)); + else + strn0cpy(m_ConfigLastDir, f, sizeof(xc.browse_files_dir)); StoreConfig(); if(m_Mode != ShowImages) { |