mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
gui/filebrowser.cpp: return directory in player mode (Hide_records is true)
if BDMV/index.bdmv found in dir
Origin commit data
------------------
Commit: 628de1f68c
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-02-21 (Fri, 21 Feb 2014)
This commit is contained in:
@@ -980,7 +980,13 @@ bool CFileBrowser::exec(const char * const dirname)
|
|||||||
std::string filename = filelist[selected].Name;
|
std::string filename = filelist[selected].Name;
|
||||||
if ( filename.length() > 1 )
|
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
|
#ifdef ENABLE_INTERNETRADIO
|
||||||
if (m_Mode == ModeSC)
|
if (m_Mode == ModeSC)
|
||||||
|
Reference in New Issue
Block a user