summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphelin <phelin>2008-02-19 00:38:51 +0000
committerphelin <phelin>2008-02-19 00:38:51 +0000
commit351111a062662ba136cf29eba36edbbe4336b9c1 (patch)
treeac6bfd4b6d8218ae47fced10d9466c19181c3f45
parent09610ba6b588479cb632f6a6e1f8974c7c06dbd0 (diff)
downloadxineliboutput-351111a062662ba136cf29eba36edbbe4336b9c1.tar.gz
xineliboutput-351111a062662ba136cf29eba36edbbe4336b9c1.tar.bz2
Fix returning to the previous directory after playing a ISO-file.
-rw-r--r--menu.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 628612c5..9bc21af5 100644
--- a/menu.c
+++ b/menu.c
@@ -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) {