findExecutable(): cleanup log output a bit.

Change-Id: I217bddc91ff9ea43a5cfc018818f5a19b1555dd9
This commit is contained in:
Dominik Riebeling 2012-01-29 15:37:08 +01:00
parent 4105c82e6b
commit 7d8db0a6ff

View file

@ -280,12 +280,13 @@ QString Utils::findExecutable(QString name)
QStringList ex = executable.split("\"", QString::SkipEmptyParts);
executable = ex.join("");
#endif
qDebug() << "[Utils] executable:" << executable;
if(QFileInfo(executable).isExecutable())
{
qDebug() << "[Utils] findExecutable: found" << executable;
return QDir::toNativeSeparators(executable);
}
}
qDebug() << "[Utils] findExecutable: could not find" << name;
return "";
}