author | llornkcor <llornkcor> | 2002-05-01 02:24:51 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-05-01 02:24:51 (UTC) |
commit | 7e5615473c1d103db66f42ae60bf9ed57d52566c (patch) (unidiff) | |
tree | 6074a903b03bb844c8d66edaa8d17ae068384288 /noncore/apps/advancedfm/advancedfm.cpp | |
parent | 1f6f336326e74534f65f88fe0045946b3d9f6d94 (diff) | |
download | opie-7e5615473c1d103db66f42ae60bf9ed57d52566c.zip opie-7e5615473c1d103db66f42ae60bf9ed57d52566c.tar.gz opie-7e5615473c1d103db66f42ae60bf9ed57d52566c.tar.bz2 |
fixed a workaround for QFileInfo::isExecutable() stupid silly bug
Diffstat (limited to 'noncore/apps/advancedfm/advancedfm.cpp') (more/less context) (ignore whitespace changes)
-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); |