summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppmodelmanager.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-06-18 12:08:07 +0200
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-06-24 13:31:14 +0000
commitb4db657cb5fd9024e1410438e9b6b314a86d180f (patch)
tree6f4f03d7ffaeee4623d38961b4b51e1f49851ff6 /src/plugins/cpptools/cppmodelmanager.cpp
parent3b7410f8dd7c2dc595f5bc6240907fae59e23f61 (diff)
downloadqt-creator-b4db657cb5fd9024e1410438e9b6b314a86d180f.tar.gz
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: Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager.cpp')
-rw-r--r--src/plugins/cpptools/cppmodelmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp
index a529c464fa..01132b9ebb 100644
--- a/src/plugins/cpptools/cppmodelmanager.cpp
+++ b/src/plugins/cpptools/cppmodelmanager.cpp
@@ -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();
}