aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edmundson <kde@davidedmundson.co.uk>2014-05-23 15:51:05 +0200
committerDavid Edmundson <kde@davidedmundson.co.uk>2014-05-23 15:51:05 +0200
commit70193760afc52ebc1ab99c9e467b9df470d9e39a (patch)
tree64f2bfe3f237a5c00a187de35ab54d8b97da9656
parentbadd2dff667bd22755efd0ec2d967476ca9eb984 (diff)
downloadkconfig-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.cpp2
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);
}
}