forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user