QmakeProjectManager: Try harder not to access nodes of in-parse project

For extra safety, do not touch the project nodes if any build system of
any build configuration is currently parsing.
This is a bit of a stab in the dark, as I cannot reproduce the crash
described in the linked bug report.

Task-number: QTCREATORBUG-23597
Change-Id: Ie62a94232e89d8fba5866ea3572535e2ab209924
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2020-03-03 14:57:21 +01:00
parent 5683f2df85
commit ae0d2bd1ac
3 changed files with 20 additions and 7 deletions

View File

@@ -320,7 +320,7 @@ bool Project::removeTarget(Target *target)
return true;
}
QList<Target *> Project::targets() const
const QList<Target *> Project::targets() const
{
return Utils::toRawPointer<QList>(d->m_targets);
}