mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-23 23:13:39 -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());
|
||||
if (faultColors)
|
||||
{
|
||||
faultColors->updateConnectedEditors();
|
||||
RiuMainWindow::instance()->uiPdmModel()->updateUiSubTree(faultColors);
|
||||
}
|
||||
else
|
||||
|
@ -153,7 +153,10 @@ bool RimEclipseFaultColors::hasValidCustomResult()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseFaultColors::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName /*= ""*/)
|
||||
{
|
||||
uiTreeOrdering.add(m_customFaultResultColors()->legendConfig());
|
||||
if (m_customFaultResultColors()->legendConfig())
|
||||
{
|
||||
uiTreeOrdering.add(m_customFaultResultColors()->legendConfig());
|
||||
}
|
||||
|
||||
uiTreeOrdering.setForgetRemainingFields(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user