From db4f6a0e94138d9422bc3668b0e19d14414190e7 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 28 Apr 2020 07:49:09 +0200 Subject: [PATCH] QmakeProjectManager: Suppress parsing for inactive build configurations Change-Id: I25bf1cd4e1382ecf55df853f4f1ee3c16657a2f4 Reviewed-by: Christian Kandeler --- src/plugins/qmakeprojectmanager/qmakeproject.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/qmakeprojectmanager/qmakeproject.cpp b/src/plugins/qmakeprojectmanager/qmakeproject.cpp index 143507005c8..90eeeb8f9b9 100644 --- a/src/plugins/qmakeprojectmanager/qmakeproject.cpp +++ b/src/plugins/qmakeprojectmanager/qmakeproject.cpp @@ -483,6 +483,12 @@ void QmakeBuildSystem::scheduleUpdateAll(QmakeProFile::AsyncUpdateDelay delay) return; } + if (!buildConfiguration()->isActive()) { + TRACE("firstParseNeeded: " << int(m_firstParseNeeded) + << ", suppressed: buildconfig not active"); + return; + } + TRACE("firstParseNeeded: " << int(m_firstParseNeeded) << ", delay: " << delay); rootProFile()->setParseInProgressRecursive(true);