From 70193760afc52ebc1ab99c9e467b9df470d9e39a Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 23 May 2014 15:51:05 +0200 Subject: 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 --- src/kconf_update/kconf_update.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } } -- cgit v1.2.1