Skip to content

Commit

Permalink
Fix checking if execCmd file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
direc85 committed Apr 14, 2022
1 parent 043228e commit a3632f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit a3632f3

Please sign in to comment.