From 93299cb802e67253efecdb0d3224cd5b8d1d15cb Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 9 Mar 2017 07:17:36 +0100 Subject: [PATCH] AutoTest: Do not perform parse for disabled parsers If a single parser triggers a reparse check if it is enabled to avoid senseless work. Change-Id: Ib28f2737be81021e1bfdd33eb347c64ffb5df020 Reviewed-by: David Schulz --- src/plugins/autotest/testcodeparser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/autotest/testcodeparser.cpp b/src/plugins/autotest/testcodeparser.cpp index 40bb7ab0752..f12e418b220 100644 --- a/src/plugins/autotest/testcodeparser.cpp +++ b/src/plugins/autotest/testcodeparser.cpp @@ -324,6 +324,8 @@ void TestCodeParser::scanForTests(const QStringList &fileList, ITestParser *pars { if (m_parserState == Shutdown || m_testCodeParsers.isEmpty()) return; + if (parser && !m_testCodeParsers.contains(parser)) + return; if (postponed(fileList)) return;