Commit b13ebc62 authored by dt's avatar dt
Browse files

Utils::Environment::searchInPath do not return directories

Reviewed-By: Friedemann Kleint
parent 04f991d7
......@@ -232,7 +232,7 @@ QString Environment::searchInPath(const QStringList &executables,
fp += slash;
fp += exec;
const QFileInfo fi(fp);
if (fi.exists())
if (fi.exists() && fi.isExecutable() && !fi.isDir())
return fi.absoluteFilePath();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment