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,9 +249,11 @@ void QmakeBuildConfiguration::updateProblemLabel()
|
|||||||
}
|
}
|
||||||
|
|
||||||
const auto bs = qmakeBuildSystem();
|
const auto bs = qmakeBuildSystem();
|
||||||
if (bs->rootProFile()->parseInProgress() || !bs->rootProFile()->validParse()) {
|
if (QmakeProFile *rootProFile = bs->rootProFile()) {
|
||||||
buildDirectoryAspect()->setProblem({});
|
if (rootProFile->parseInProgress() || !rootProFile->validParse()) {
|
||||||
return;
|
buildDirectoryAspect()->setProblem({});
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool targetMismatch = false;
|
bool targetMismatch = false;
|
||||||
|
@@ -231,6 +231,7 @@ QmakeBuildSystem::QmakeBuildSystem(QmakeBuildConfiguration *bc)
|
|||||||
|
|
||||||
QmakeBuildSystem::~QmakeBuildSystem()
|
QmakeBuildSystem::~QmakeBuildSystem()
|
||||||
{
|
{
|
||||||
|
m_guard = {};
|
||||||
delete m_cppCodeModelUpdater;
|
delete m_cppCodeModelUpdater;
|
||||||
m_cppCodeModelUpdater = nullptr;
|
m_cppCodeModelUpdater = nullptr;
|
||||||
m_asyncUpdateState = ShuttingDown;
|
m_asyncUpdateState = ShuttingDown;
|
||||||
|
Reference in New Issue
Block a user