#1863 Avoid switching result when flooded pv is not selected as result variable

This commit is contained in:
Jacob Støren 2017-09-05 12:03:17 +02:00
parent 31bddebc65
commit 0d5c62f4e7

View File

@ -257,7 +257,6 @@ void RimEclipseResultDefinition::fieldChangedByUi(const caf::PdmFieldHandle* cha
{
if (!m_resultVariable().isEmpty())
{
m_resultType = m_resultTypeUiField();
m_selectedSouringTracers = m_selectedSouringTracersUiField();
loadDataAndUpdate();
}
@ -812,7 +811,7 @@ RigFlowDiagResultAddress RimEclipseResultDefinition::flowDiagResAddress() const
{
selTracerNames.insert(selectedTracerName.toUtf8().constData());
}
return RigFlowDiagResultAddress(RIG_NUM_FLOODED_PV, RigFlowDiagResultAddress::PHASE_ALL, selTracerNames);
return RigFlowDiagResultAddress(m_resultVariable().toStdString(), RigFlowDiagResultAddress::PHASE_ALL, selTracerNames);
}
}