From a3632f3f31df898c462c61b32aadc16af55f6eec Mon Sep 17 00:00:00 2001 From: Matti Viljanen Date: Fri, 15 Apr 2022 02:09:19 +0300 Subject: [PATCH] Fix checking if execCmd file exists --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index fdc4128..2609bc0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -96,7 +96,7 @@ int main(int argc, char *argv[]) // If not, see if the execCmd is set if(execCmd.isEmpty()) { execCmd = settings->value("gen/execCmd").toString(); - if(!execCmd.isEmpty()) { + if(!execCmd.isEmpty() && !QFile::exists(execCmd)) { fprintf(stderr, "Warning: '%s' (gen/execCmd) not found\n", execCmd.toUtf8().constData()); } }