From 774b74583ef8c82e16c41b9fad1faec0601c9c28 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 26 Oct 2022 11:44:11 +0200 Subject: [PATCH] Cppcheck: Do not start non-existing tool Just pollutes the General Messages pane, so skip execution if tool is not existing. Change-Id: Ib78e3a8ccd992ff2d58f183102c778c800156b89 Reviewed-by: Christian Kandeler --- src/plugins/cppcheck/cppcheckrunner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/cppcheck/cppcheckrunner.cpp b/src/plugins/cppcheck/cppcheckrunner.cpp index c31ff515a51..92bdd59c526 100644 --- a/src/plugins/cppcheck/cppcheckrunner.cpp +++ b/src/plugins/cppcheck/cppcheckrunner.cpp @@ -110,7 +110,7 @@ QString CppcheckRunner::currentCommand() const void CppcheckRunner::checkQueued() { - if (m_queue.isEmpty() || m_binary.isEmpty()) + if (m_queue.isEmpty() || !m_binary.isExecutableFile()) return; FilePaths files = m_queue.begin().value();