mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 15:26:48 -06:00
Added guarding of missing legendConfig
This commit is contained in:
parent
c7fca88bdc
commit
421c2e3685
@ -89,6 +89,7 @@ void RimEclipseCellColors::fieldChangedByUi(const caf::PdmFieldHandle* changedFi
|
|||||||
RimEclipseFaultColors* faultColors = dynamic_cast<RimEclipseFaultColors*>(this->parentField()->ownerObject());
|
RimEclipseFaultColors* faultColors = dynamic_cast<RimEclipseFaultColors*>(this->parentField()->ownerObject());
|
||||||
if (faultColors)
|
if (faultColors)
|
||||||
{
|
{
|
||||||
|
faultColors->updateConnectedEditors();
|
||||||
RiuMainWindow::instance()->uiPdmModel()->updateUiSubTree(faultColors);
|
RiuMainWindow::instance()->uiPdmModel()->updateUiSubTree(faultColors);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -153,7 +153,10 @@ bool RimEclipseFaultColors::hasValidCustomResult()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RimEclipseFaultColors::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName /*= ""*/)
|
void RimEclipseFaultColors::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName /*= ""*/)
|
||||||
{
|
{
|
||||||
|
if (m_customFaultResultColors()->legendConfig())
|
||||||
|
{
|
||||||
uiTreeOrdering.add(m_customFaultResultColors()->legendConfig());
|
uiTreeOrdering.add(m_customFaultResultColors()->legendConfig());
|
||||||
|
}
|
||||||
|
|
||||||
uiTreeOrdering.setForgetRemainingFields(true);
|
uiTreeOrdering.setForgetRemainingFields(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user