mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Make sure surfaces are turned off in all contourmaps. (#7241)
This commit is contained in:
parent
18b145268e
commit
a01c511308
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user