summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-05-02 03:35:28 (UTC)
committer llornkcor <llornkcor>2002-05-02 03:35:28 (UTC)
commita52fd4b1995e34963888397587aa2592ea858da6 (patch) (unidiff)
tree6f8461a8ff72a96078bac6e3a644d33a8b25873a
parentdd8d5784a9ef93b0d4ed7b6d1751942a904ab7cb (diff)
downloadopie-a52fd4b1995e34963888397587aa2592ea858da6.zip
opie-a52fd4b1995e34963888397587aa2592ea858da6.tar.gz
opie-a52fd4b1995e34963888397587aa2592ea858da6.tar.bz2
I hate vfat.. I really do, or maybe I hate the way the kernel deals with it
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp13
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()
320// item->setPixmap( 0,pm ); 320// item->setPixmap( 0,pm );
321 } else if ( fs == "vfat" && fileInfo.filePath().contains("/bin") ) {
322 pm = Resource::loadPixmap( "exec");
321 } else if( (fileInfo.permission( QFileInfo::ExeUser) 323 } else if( (fileInfo.permission( QFileInfo::ExeUser)
322 | fileInfo.permission( QFileInfo::ExeGroup) 324 | fileInfo.permission( QFileInfo::ExeGroup)
323 | fileInfo.permission( QFileInfo::ExeOther)) 325 | fileInfo.permission( QFileInfo::ExeOther)) && fs != "vfat" ) {
324 | fs == "vfat" && fileInfo.filePath().contains("/bin") ) {
325 pm = Resource::loadPixmap( "exec"); 326 pm = Resource::loadPixmap( "exec");
@@ -432,3 +433,3 @@ void AdvancedFm::populateRemoteView()
432 } 433 }
433 QFileInfo fileInfo( currentDir.canonicalPath()+"/"+fileL); 434 QFileInfo fileInfo( currentRemoteDir.canonicalPath()+"/"+fileL);
434 if(fileL !="./" && fi->exists()) { 435 if(fileL !="./" && fi->exists()) {
@@ -443,7 +444,7 @@ void AdvancedFm::populateRemoteView()
443// item->setPixmap( 0,pm ); 444// item->setPixmap( 0,pm );
445 } else if ( fs == "vfat" && fileInfo.filePath().contains("/bin") ) {
446 pm = Resource::loadPixmap( "exec");
444 } else if( (fileInfo.permission( QFileInfo::ExeUser) 447 } else if( (fileInfo.permission( QFileInfo::ExeUser)
445 | fileInfo.permission( QFileInfo::ExeGroup) 448 | fileInfo.permission( QFileInfo::ExeGroup)
446 | fileInfo.permission( QFileInfo::ExeOther)) 449 | fileInfo.permission( QFileInfo::ExeOther)) && fs != "vfat" ) {
447 | fs == "vfat" && fileInfo.filePath().contains("/bin") ) {
448///// } else if(fileInfo.isExecutable()){ //is exec <<<< BROKEN!!
449 pm = Resource::loadPixmap( "exec"); 450 pm = Resource::loadPixmap( "exec");