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 <christian.kandeler@qt.io>
This commit is contained in:
Christian Stenger
2022-10-26 11:44:11 +02:00
parent 26bb95331b
commit 774b74583e

View File

@@ -110,7 +110,7 @@ QString CppcheckRunner::currentCommand() const
void CppcheckRunner::checkQueued() void CppcheckRunner::checkQueued()
{ {
if (m_queue.isEmpty() || m_binary.isEmpty()) if (m_queue.isEmpty() || !m_binary.isExecutableFile())
return; return;
FilePaths files = m_queue.begin().value(); FilePaths files = m_queue.begin().value();