#1798 Switch to TOF result variable when changing phase to anything other than "All"

This commit is contained in:
Bjørnar Grip Fjær 2017-08-22 12:04:10 +02:00
parent f009a63efd
commit 7ff1b8e128

View File

@ -242,6 +242,11 @@ void RimEclipseResultDefinition::fieldChangedByUi(const caf::PdmFieldHandle* cha
if (&m_phaseSelection == changedField)
{
if (m_phaseSelection() != RigFlowDiagResultAddress::PHASE_ALL)
{
m_resultVariable = RIG_FLD_TOF_RESNAME;
m_resultVariableUiField = RIG_FLD_TOF_RESNAME;
}
loadDataAndUpdate();
}