(#579) Removing well log extractors with case references in case destructors

This commit is contained in:
Pål Hagen
2015-10-22 14:26:54 +02:00
parent eb9f909fb1
commit 52f1e47576
3 changed files with 38 additions and 26 deletions

View File

@@ -161,19 +161,6 @@ void RicCloseCaseFeature::deleteEclipseCase(RimEclipseCase* eclipseCase)
removeCaseFromAllGroups(eclipseCase);
}
RimProject* project = RiaApplication::instance()->project();
if (project)
{
if (project->mainPlotCollection())
{
RimWellLogPlotCollection* plotCollection = project->mainPlotCollection()->wellLogPlotCollection();
if (plotCollection)
{
plotCollection->removeExtractors(eclipseCase->reservoirData());
}
}
}
delete eclipseCase;
}
@@ -193,19 +180,6 @@ void RicCloseCaseFeature::deleteGeoMechCase(RimGeoMechCase* geoMechCase)
models->updateConnectedEditors();
}
RimProject* project = RiaApplication::instance()->project();
if (project)
{
if (project->mainPlotCollection())
{
RimWellLogPlotCollection* plotCollection = project->mainPlotCollection()->wellLogPlotCollection();
if (plotCollection)
{
plotCollection->removeExtractors(geoMechCase->geoMechData());
}
}
}
delete geoMechCase;
}