forked from qt-creator/qt-creator
Qmake: Deactivate parse guard before it can cause trouble
... in the QmakeBuildSystem destructor Change-Id: I23336cc0b72673fd2c63235b1c568439159d3d8d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -249,10 +249,12 @@ void QmakeBuildConfiguration::updateProblemLabel()
|
||||
}
|
||||
|
||||
const auto bs = qmakeBuildSystem();
|
||||
if (bs->rootProFile()->parseInProgress() || !bs->rootProFile()->validParse()) {
|
||||
if (QmakeProFile *rootProFile = bs->rootProFile()) {
|
||||
if (rootProFile->parseInProgress() || !rootProFile->validParse()) {
|
||||
buildDirectoryAspect()->setProblem({});
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
bool targetMismatch = false;
|
||||
bool incompatibleBuild = false;
|
||||
|
@@ -231,6 +231,7 @@ QmakeBuildSystem::QmakeBuildSystem(QmakeBuildConfiguration *bc)
|
||||
|
||||
QmakeBuildSystem::~QmakeBuildSystem()
|
||||
{
|
||||
m_guard = {};
|
||||
delete m_cppCodeModelUpdater;
|
||||
m_cppCodeModelUpdater = nullptr;
|
||||
m_asyncUpdateState = ShuttingDown;
|
||||
|
Reference in New Issue
Block a user