summaryrefslogtreecommitdiffstats
path: root/src/locater.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/locater.cpp')
-rw-r--r--src/locater.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/locater.cpp b/src/locater.cpp
index 120ec99..a160673 100644
--- a/src/locater.cpp
+++ b/src/locater.cpp
@@ -57,9 +57,9 @@ void Locater::setupLocate(const TQString& binary, const TQString& additionalArgu
// Automatically choose the correct binary if not specified.
if (binary.isEmpty()) {
- if (KStandardDirs::findExe("slocate")) {
+ if (!KStandardDirs::findExe("slocate").isNull()) {
m_binary = "slocate";
- } else if (KStandardDirs::findExe("rlocate")) {
+ } else if (!KStandardDirs::findExe("rlocate").isNull()) {
m_binary = "rlocate";
} else {
m_binary = "locate";