From 99c14ad074bfcaeba15ddc73405b25144e7a9861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Mon, 16 Apr 2018 11:06:13 +0300 Subject: [PATCH] Correctly report when excutable is not found. --- src/fs/filesystem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fs/filesystem.cpp b/src/fs/filesystem.cpp index df6eb8c..bac502c 100644 --- a/src/fs/filesystem.cpp +++ b/src/fs/filesystem.cpp @@ -564,6 +564,8 @@ bool FileSystem::findExternal(const QString& cmdName, const QStringList& args, i QString cmdFullPath = QStandardPaths::findExecutable(cmdName); if (cmdFullPath.isEmpty()) cmdFullPath = QStandardPaths::findExecutable(cmdName, { QStringLiteral("/sbin/"), QStringLiteral("/usr/sbin/"), QStringLiteral("/usr/local/sbin/") }); + if (cmdFullPath.isEmpty()) + return false; ExternalCommand cmd(cmdFullPath, args); if (!cmd.run())