From 70daafc96d5dd16833ab98daec181e41c01f1903 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 21 Feb 2014 11:51:34 +0400 Subject: [PATCH] gui/filebrowser.cpp: return directory in player mode (Hide_records is true) if BDMV/index.bdmv found in dir Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/628de1f68c8295fe34ee1a45f36971fb5f00316c Author: [CST] Focus Date: 2014-02-21 (Fri, 21 Feb 2014) --- src/gui/filebrowser.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gui/filebrowser.cpp b/src/gui/filebrowser.cpp index f5d21d53e..c571e29a3 100644 --- a/src/gui/filebrowser.cpp +++ b/src/gui/filebrowser.cpp @@ -980,7 +980,13 @@ bool CFileBrowser::exec(const char * const dirname) std::string filename = filelist[selected].Name; if ( filename.length() > 1 ) { - if((!Multi_Select) && S_ISDIR(filelist[selected].Mode) && !Dir_Mode) + bool return_dir = false; + if (Hide_records && S_ISDIR(filelist[selected].Mode)) { + std::string bdmv = filename + "/BDMV/index.bdmv"; + if (access(bdmv.c_str(), F_OK) == 0) + return_dir = true; + } + if(!return_dir && (!Multi_Select) && S_ISDIR(filelist[selected].Mode) && !Dir_Mode) { #ifdef ENABLE_INTERNETRADIO if (m_Mode == ModeSC)