-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index ee3f736..a9ba3c2 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -320,5 +320,10 @@ void AdvancedFm::populateLocalView() | |||
320 | // item->setPixmap( 0,pm ); | 320 | // item->setPixmap( 0,pm ); |
321 | } else if( fileInfo.isExecutable() || fs == "vfat" && fi->filePath().contains("/bin") ) { //is exec | 321 | } else if( (fileInfo.permission( QFileInfo::ExeUser) |
322 | pm = Resource::loadPixmap( "exec"); | 322 | | fileInfo.permission( QFileInfo::ExeGroup) |
323 | // item->setPixmap( 0,pm); | 323 | | fileInfo.permission( QFileInfo::ExeOther)) & fs.find("vfat",0,TRUE) == -1) { |
324 | pm = Resource::loadPixmap( "exec"); | ||
325 | // else { //is exec | ||
326 | // pm = Resource::loadPixmap( "exec"); | ||
327 | // } | ||
328 | // // item->setPixmap( 0,pm); | ||
324 | } else if( !fi->isReadable() ) { | 329 | } else if( !fi->isReadable() ) { |
@@ -334,3 +339,3 @@ void AdvancedFm::populateLocalView() | |||
334 | item->setPixmap( 0,pm); | 339 | item->setPixmap( 0,pm); |
335 | if( fi->isSymLink() &&fileL.find("->",0,TRUE) != -1) { | 340 | if( fi->isSymLink() && fileL.find("->",0,TRUE) != -1) { |
336 | // overlay link image | 341 | // overlay link image |
@@ -426,2 +431,3 @@ void AdvancedFm::populateRemoteView() | |||
426 | } | 431 | } |
432 | QFileInfo fileInfo( currentDir.canonicalPath()+"/"+fileL); | ||
427 | if(fileL !="./" && fi->exists()) { | 433 | if(fileL !="./" && fi->exists()) { |
@@ -436,4 +442,8 @@ void AdvancedFm::populateRemoteView() | |||
436 | // item->setPixmap( 0,pm ); | 442 | // item->setPixmap( 0,pm ); |
437 | } else if( fi->isExecutable() || fs == "vfat" && fi->filePath().contains("/bin") ) { | 443 | } else if( (fileInfo.permission( QFileInfo::ExeUser) |
438 | pm = Resource::loadPixmap( "exec"); | 444 | | fileInfo.permission( QFileInfo::ExeGroup) |
445 | | fileInfo.permission( QFileInfo::ExeOther)) & fs.find("vfat",0,TRUE) == -1) { | ||
446 | pm = Resource::loadPixmap( "exec"); | ||
447 | ///// } else if(fileInfo.isExecutable()){ //is exec <<<< BROKEN!! | ||
448 | pm = Resource::loadPixmap( "exec"); | ||
439 | // item->setPixmap( 0,pm); | 449 | // item->setPixmap( 0,pm); |