diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2012-01-29 15:37:08 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2012-01-29 22:55:18 +0100 |
commit | 7d8db0a6ffb7b54bbb6d05dcb8a8268ec5e1a008 (patch) | |
tree | eb9945720e066b9e08aac1d9494bd4136b2932c5 /rbutil/rbutilqt/base | |
parent | 4105c82e6bb6cf5407256af736405ddff437c25f (diff) |
findExecutable(): cleanup log output a bit.
Change-Id: I217bddc91ff9ea43a5cfc018818f5a19b1555dd9
Diffstat (limited to 'rbutil/rbutilqt/base')
-rw-r--r-- | rbutil/rbutilqt/base/utils.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/utils.cpp b/rbutil/rbutilqt/base/utils.cpp index 7df5d28da9..28162a93f3 100644 --- a/rbutil/rbutilqt/base/utils.cpp +++ b/rbutil/rbutilqt/base/utils.cpp @@ -272,7 +272,7 @@ QString Utils::findExecutable(QString name) QStringList path = QString(getenv("PATH")).split(";", QString::SkipEmptyParts); #endif qDebug() << "[Utils] system path:" << path; - for(int i = 0; i < path.size(); i++) + for(int i = 0; i < path.size(); i++) { QString executable = QDir::fromNativeSeparators(path.at(i)) + "/" + name; #if defined(Q_OS_WIN) @@ -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 ""; } |