mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kio: check if the URL is directory before checking permissions in KRun::isExecutableFile()
as the KRun::isExecutableFile() method name implies - it is only for checking files Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
f444caa565
commit
1a29d6bb3b
1 changed files with 2 additions and 2 deletions
|
@ -101,8 +101,8 @@ bool KRun::isExecutableFile(const KUrl &url, const QString &mimetype)
|
|||
if (!url.isLocalFile()) {
|
||||
return false;
|
||||
}
|
||||
QFileInfo file(url.toLocalFile());
|
||||
if (file.isExecutable()) {
|
||||
QFileInfo fileinfo(url.toLocalFile());
|
||||
if (!fileinfo.isDir() && fileinfo.isExecutable()) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue