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:
@@ -120,6 +120,10 @@ void RicNewContourMapViewFeature::onActionTriggered( bool isChecked )
|
|||||||
// Must be run before buildViewItems, as wells are created in this function
|
// Must be run before buildViewItems, as wells are created in this function
|
||||||
eclipseContourMap->loadDataAndUpdate();
|
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 )
|
if ( eclipseCase )
|
||||||
{
|
{
|
||||||
eclipseCase->updateConnectedEditors();
|
eclipseCase->updateConnectedEditors();
|
||||||
@@ -134,6 +138,10 @@ void RicNewContourMapViewFeature::onActionTriggered( bool isChecked )
|
|||||||
else if ( geoMechContourMap )
|
else if ( geoMechContourMap )
|
||||||
{
|
{
|
||||||
geoMechContourMap->loadDataAndUpdate();
|
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 )
|
if ( geoMechCase )
|
||||||
{
|
{
|
||||||
geoMechCase->updateConnectedEditors();
|
geoMechCase->updateConnectedEditors();
|
||||||
@@ -350,9 +358,6 @@ RimGeoMechContourMapView* RicNewContourMapViewFeature::createGeoMechContourMapFr
|
|||||||
|
|
||||||
contourMap->setDefaultCustomName();
|
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 );
|
caf::PdmDocument::updateUiIconStateRecursively( contourMap );
|
||||||
|
|
||||||
geoMechCase->contourMapCollection()->push_back( contourMap );
|
geoMechCase->contourMapCollection()->push_back( contourMap );
|
||||||
|
|||||||
Reference in New Issue
Block a user