Never show ternary legend field in project tree

This commit is contained in:
Magne Sjaastad 2015-08-26 10:43:51 +02:00
parent 2b133fac94
commit d79cc50fd5

View File

@ -102,13 +102,11 @@ void RimEclipseCellColors::changeLegendConfig(QString resultVarNameOfNewLegend)
{ {
if (resultVarNameOfNewLegend == RimDefines::ternarySaturationResultName()) if (resultVarNameOfNewLegend == RimDefines::ternarySaturationResultName())
{ {
this->ternaryLegendConfig.uiCapability()->setUiHidden(false);
this->ternaryLegendConfig.uiCapability()->setUiChildrenHidden(false); this->ternaryLegendConfig.uiCapability()->setUiChildrenHidden(false);
this->m_legendConfigPtrField.uiCapability()->setUiChildrenHidden(true); this->m_legendConfigPtrField.uiCapability()->setUiChildrenHidden(true);
} }
else else
{ {
this->ternaryLegendConfig.uiCapability()->setUiHidden(true);
this->ternaryLegendConfig.uiCapability()->setUiChildrenHidden(true); this->ternaryLegendConfig.uiCapability()->setUiChildrenHidden(true);
bool found = false; bool found = false;