Commit b4db657c authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

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 <>
Reviewed-by: default avatarMarco Bubke <>
parent 3b7410f8
...@@ -988,14 +988,14 @@ void CppModelManager::onAboutToRemoveProject(ProjectExplorer::Project *project) ...@@ -988,14 +988,14 @@ void CppModelManager::onAboutToRemoveProject(ProjectExplorer::Project *project)
// Save paths // Save paths
const ProjectInfo projectInfo = d->m_projectToProjectsInfo.value(project, ProjectInfo()); const ProjectInfo projectInfo = d->m_projectToProjectsInfo.value(project, ProjectInfo());
projectFilePaths = pathsOfAllProjectParts(projectInfo); projectFilePaths = pathsOfAllProjectParts(projectInfo);
d->m_projectToProjectsInfo.remove(project); d->m_projectToProjectsInfo.remove(project);
recalculateFileToProjectParts(); recalculateFileToProjectParts();
} }
emit projectPartsRemoved(projectFilePaths); if (!projectFilePaths.isEmpty())
emit projectPartsRemoved(projectFilePaths);
delayedGC(); 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