Commit b4db657c authored by Nikolai Kosjar's avatar Nikolai Kosjar

CppTools: Remove invalid QTC_CHECK

Quitting Qt Creator before the project was loaded from the project
manager triggers the assert because the updateProjectInfo() call was not
yet made by the project manager.

Change-Id: I23c660971e48d007d1bae00ecf8ed5c2ad3d4071
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
parent 3b7410f8
......@@ -988,14 +988,14 @@ void CppModelManager::onAboutToRemoveProject(ProjectExplorer::Project *project)
// Save paths
const ProjectInfo projectInfo = d->m_projectToProjectsInfo.value(project, ProjectInfo());
QTC_CHECK(projectInfo.isValid());
projectFilePaths = pathsOfAllProjectParts(projectInfo);
d->m_projectToProjectsInfo.remove(project);
recalculateFileToProjectParts();
}
emit projectPartsRemoved(projectFilePaths);
if (!projectFilePaths.isEmpty())
emit projectPartsRemoved(projectFilePaths);
delayedGC();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment