diff options
| author | David Edmundson <kde@davidedmundson.co.uk> | 2014-05-23 15:51:05 +0200 |
|---|---|---|
| committer | David Edmundson <kde@davidedmundson.co.uk> | 2014-05-23 15:51:05 +0200 |
| commit | 70193760afc52ebc1ab99c9e467b9df470d9e39a (patch) | |
| tree | 64f2bfe3f237a5c00a187de35ab54d8b97da9656 | |
| parent | badd2dff667bd22755efd0ec2d967476ca9eb984 (diff) | |
| download | kconfig-70193760afc52ebc1ab99c9e467b9df470d9e39a.tar.gz kconfig-70193760afc52ebc1ab99c9e467b9df470d9e39a.tar.bz2 | |
Fix searching of paths in kconf_update
Previous code said if we found an executable in kconf_update_bin
try to find a different executable in the normal path
Reviewed-by: Rohan Garg
| -rw-r--r-- | src/kconf_update/kconf_update.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kconf_update/kconf_update.cpp b/src/kconf_update/kconf_update.cpp index 1bcbf7da..829d35e6 100644 --- a/src/kconf_update/kconf_update.cpp +++ b/src/kconf_update/kconf_update.cpp @@ -745,7 +745,7 @@ void KonfUpdate::gotScript(const QString &_script) if (path.isEmpty()) { if (interpreter.isEmpty()) { path = CMAKE_INSTALL_PREFIX "/" LIB_INSTALL_DIR "/kconf_update_bin/" + script; - if (QFile::exists(path)) { + if (!QFile::exists(path)) { path = QStandardPaths::findExecutable(script); } } |
