diff --git a/src/plugins/autotest/testcodeparser.cpp b/src/plugins/autotest/testcodeparser.cpp index a86ec254e62..45f7a07b1b1 100644 --- a/src/plugins/autotest/testcodeparser.cpp +++ b/src/plugins/autotest/testcodeparser.cpp @@ -208,20 +208,15 @@ static void performParse(QFutureInterface &futureInterface, void TestCodeParser::onDocumentUpdated(const QString &fileName) { + if (m_codeModelParsing || m_fullUpdatePostponed) + return; + ProjectExplorer::Project *project = ProjectExplorer::SessionManager::startupProject(); if (!project) return; if (!project->files(ProjectExplorer::Project::SourceFiles).contains(fileName)) return; - if (m_codeModelParsing) { - if (!m_fullUpdatePostponed) { - m_partialUpdatePostponed = true; - m_postponedFiles.insert(fileName); - } - return; - } - scanForTests(QStringList(fileName)); }