From dd8d5784a9ef93b0d4ed7b6d1751942a904ab7cb Mon Sep 17 00:00:00 2001 From: llornkcor Date: Thu, 02 May 2002 02:42:45 +0000 Subject: bug on vfat workaround... sorta --- (limited to 'noncore/apps/advancedfm') diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 7cd8644..b224deb 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -320,7 +320,8 @@ void AdvancedFm::populateLocalView() // item->setPixmap( 0,pm ); } else if( (fileInfo.permission( QFileInfo::ExeUser) | fileInfo.permission( QFileInfo::ExeGroup) - | fileInfo.permission( QFileInfo::ExeOther)) & fs.find("vfat",0,TRUE) == -1) { + | fileInfo.permission( QFileInfo::ExeOther)) + | fs == "vfat" && fileInfo.filePath().contains("/bin") ) { pm = Resource::loadPixmap( "exec"); // else { //is exec // pm = Resource::loadPixmap( "exec"); @@ -442,7 +443,8 @@ void AdvancedFm::populateRemoteView() // item->setPixmap( 0,pm ); } else if( (fileInfo.permission( QFileInfo::ExeUser) | fileInfo.permission( QFileInfo::ExeGroup) - | fileInfo.permission( QFileInfo::ExeOther)) & fs.find("vfat",0,TRUE) == -1) { + | fileInfo.permission( QFileInfo::ExeOther)) + | fs == "vfat" && fileInfo.filePath().contains("/bin") ) { ///// } else if(fileInfo.isExecutable()){ //is exec <<<< BROKEN!! pm = Resource::loadPixmap( "exec"); // item->setPixmap( 0,pm); -- cgit v0.9.0.2