#6033 Surface Properties : Change name to Surface Result

This commit is contained in:
Magne Sjaastad
2020-06-17 10:41:12 +02:00
parent cff19c621f
commit 869f6ce39b
2 changed files with 14 additions and 2 deletions

View File

@@ -105,8 +105,9 @@ void RimSurfaceInView::setSurface( RimSurface* surf )
m_resultDefinition->setCheckState( true );
m_resultDefinition->assignDefaultProperty();
m_resultDefinition->updateMinMaxValues();
}
m_resultDefinition->updateMinMaxValues();
}
//--------------------------------------------------------------------------------------------------
@@ -160,6 +161,17 @@ void RimSurfaceInView::loadDataAndUpdate()
{
surface()->loadDataIfRequired();
if ( surface()->surfaceData() && surface()->surfaceData()->propertyNames().empty() )
{
m_resultDefinition.uiCapability()->setUiTreeChildrenHidden( true );
m_resultDefinition->setCheckState( false );
}
else
{
m_resultDefinition.uiCapability()->setUiTreeChildrenHidden( false );
m_resultDefinition->setCheckState( true );
}
m_resultDefinition->updateMinMaxValues();
}
}