Merge remote-tracking branch 'gerrit/4.9' into 4.10

Change-Id: I033d6baa40af45ae1eb6ed82827ff51213c832f5
This commit is contained in:
Eike Ziller
2019-06-13 13:53:02 +02:00
6 changed files with 20 additions and 6 deletions

View File

@@ -358,9 +358,8 @@ void CMakeProject::updateProjectData(CMakeBuildConfiguration *bc)
void CMakeProject::updateQmlJSCodeModel()
{
QmlJS::ModelManagerInterface *modelManager = QmlJS::ModelManagerInterface::instance();
QTC_ASSERT(modelManager, return);
if (!activeTarget() || !activeTarget()->activeBuildConfiguration())
if (!modelManager || !activeTarget() || !activeTarget()->activeBuildConfiguration())
return;
QmlJS::ModelManagerInterface::ProjectInfo projectInfo =