gui/filebrowser.cpp: change checkBD() to static

Origin commit data
------------------
Commit: f3e57a224d
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-09-27 (Sat, 27 Sep 2014)
This commit is contained in:
[CST] Focus
2014-09-27 15:16:44 +04:00
parent b634aefe85
commit 2f7945d5d8
2 changed files with 4 additions and 4 deletions

View File

@@ -747,7 +747,7 @@ bool CFileBrowser::readDir_std(const std::string & dirname, CFileList* flist)
bool CFileBrowser::checkBD(CFile &file)
{
if (Hide_records && S_ISDIR(file.Mode)) {
if (S_ISDIR(file.Mode)) {
std::string bdmv = file.Name + "/BDMV/index.bdmv";
if (access(bdmv.c_str(), F_OK) == 0)
return true;
@@ -1008,7 +1008,7 @@ bool CFileBrowser::exec(const char * const dirname)
std::string filename = filelist[selected].Name;
if ( filename.length() > 1 )
{
bool return_dir = checkBD(filelist[selected]);
bool return_dir = Hide_records && checkBD(filelist[selected]);
if(!return_dir && (!Multi_Select) && S_ISDIR(filelist[selected].Mode) && !Dir_Mode)
{
#ifdef ENABLE_INTERNETRADIO
@@ -1086,7 +1086,7 @@ bool CFileBrowser::exec(const char * const dirname)
for(unsigned int i = 0; i < filelist.size();i++)
if(filelist[i].Marked)
{
bool return_dir = checkBD(filelist[i]);
bool return_dir = Hide_records && checkBD(filelist[i]);
if(!return_dir && S_ISDIR(filelist[i].Mode)) {
if (!progress) {
progress = new CProgressWindow();