Make sure surfaces are turned off in all contourmaps. (#7241)

This commit is contained in:
jonjenssen 2021-01-19 14:59:06 +01:00 committed by GitHub
parent 18b145268e
commit a01c511308
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,6 +120,10 @@ void RicNewContourMapViewFeature::onActionTriggered( bool isChecked )
// Must be run before buildViewItems, as wells are created in this function
eclipseContourMap->loadDataAndUpdate();
// make sure no surfaces are shown in the view when the contourmap is generated
if ( eclipseContourMap->surfaceInViewCollection() )
eclipseContourMap->surfaceInViewCollection()->setCheckState( Qt::Unchecked );
if ( eclipseCase )
{
eclipseCase->updateConnectedEditors();
@ -134,6 +138,10 @@ void RicNewContourMapViewFeature::onActionTriggered( bool isChecked )
else if ( geoMechContourMap )
{
geoMechContourMap->loadDataAndUpdate();
// make sure no surfaces are shown in the view when the contourmap is generated
if ( geoMechContourMap->surfaceInViewCollection() )
geoMechContourMap->surfaceInViewCollection()->setCheckState( Qt::Unchecked );
if ( geoMechCase )
{
geoMechCase->updateConnectedEditors();
@ -350,9 +358,6 @@ RimGeoMechContourMapView* RicNewContourMapViewFeature::createGeoMechContourMapFr
contourMap->setDefaultCustomName();
// make sure no surfaces are shown in the view when the contourmap is generated
if ( contourMap->surfaceInViewCollection() ) contourMap->surfaceInViewCollection()->setCheckState( Qt::Unchecked );
caf::PdmDocument::updateUiIconStateRecursively( contourMap );
geoMechCase->contourMapCollection()->push_back( contourMap );