-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index b224deb..f4ca349 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -320,6 +320,7 @@ void AdvancedFm::populateLocalView() // item->setPixmap( 0,pm ); + } else if ( fs == "vfat" && fileInfo.filePath().contains("/bin") ) { + pm = Resource::loadPixmap( "exec"); } else if( (fileInfo.permission( QFileInfo::ExeUser) | fileInfo.permission( QFileInfo::ExeGroup) - | fileInfo.permission( QFileInfo::ExeOther)) - | fs == "vfat" && fileInfo.filePath().contains("/bin") ) { + | fileInfo.permission( QFileInfo::ExeOther)) && fs != "vfat" ) { pm = Resource::loadPixmap( "exec"); @@ -432,3 +433,3 @@ void AdvancedFm::populateRemoteView() } - QFileInfo fileInfo( currentDir.canonicalPath()+"/"+fileL); + QFileInfo fileInfo( currentRemoteDir.canonicalPath()+"/"+fileL); if(fileL !="./" && fi->exists()) { @@ -443,7 +444,7 @@ void AdvancedFm::populateRemoteView() // item->setPixmap( 0,pm ); + } else if ( fs == "vfat" && fileInfo.filePath().contains("/bin") ) { + pm = Resource::loadPixmap( "exec"); } else if( (fileInfo.permission( QFileInfo::ExeUser) | fileInfo.permission( QFileInfo::ExeGroup) - | fileInfo.permission( QFileInfo::ExeOther)) - | fs == "vfat" && fileInfo.filePath().contains("/bin") ) { -///// } else if(fileInfo.isExecutable()){ //is exec <<<< BROKEN!! + | fileInfo.permission( QFileInfo::ExeOther)) && fs != "vfat" ) { pm = Resource::loadPixmap( "exec"); |