[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kio/kio
From:       Peter Kümmel <syntheticpp () yahoo ! com>
Date:       2007-07-22 11:40:07
Message-ID: 1185104407.296584.17420.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 690857 by kuemmel:

QFileInfo uses X_OK in isExecutable on Linux but not on Windows.

 M  +1 -1      kfileitem.cpp  


--- trunk/KDE/kdelibs/kio/kio/kfileitem.cpp #690856:690857
@@ -891,7 +891,7 @@
         return true;
 
     // Executable, shell script ... ?
-    if ( ::access( QFile::encodeName(d->m_url.path()), X_OK ) == 0 )
+    if ( QFileInfo(d->m_url.path()).isExecutable() )
         return true;
 
     return false;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic