diff options
author | Christian Stenger <christian.stenger@qt.io> | 2022-10-26 11:44:11 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2022-10-27 06:25:47 +0000 |
commit | 774b74583ef8c82e16c41b9fad1faec0601c9c28 (patch) | |
tree | 76b7e4241a7007069a86c61033300a80745a009c /src/plugins/cppcheck | |
parent | 26bb95331b4cda149c862770f9a92339dfc8dd1b (diff) |
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>
Diffstat (limited to 'src/plugins/cppcheck')
-rw-r--r-- | src/plugins/cppcheck/cppcheckrunner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |