mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
qt core: prevent exceptions when deleting closed project
Change-Id: Ia2facb7682e83dc4d5023713f0d040b696f4ba6b
This commit is contained in:
parent
f4cb39bc3b
commit
e7d064e89c
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ public class QtBuildConfigurationFactory implements IAdapterFactory {
|
|||
|| event.getType() == IResourceChangeEvent.PRE_DELETE) {
|
||||
if (event.getResource().getType() == IResource.PROJECT) {
|
||||
IProject project = event.getResource().getProject();
|
||||
if (QtNature.hasNature(project)) {
|
||||
if (project.isOpen() && project.exists() && QtNature.hasNature(project)) {
|
||||
try {
|
||||
for (IBuildConfiguration config : project.getBuildConfigs()) {
|
||||
cache.remove(config);
|
||||
|
|
Loading…
Add table
Reference in a new issue