mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1863 Avoid switching result when flooded pv is not selected as result variable
This commit is contained in:
parent
31bddebc65
commit
0d5c62f4e7
@ -257,7 +257,6 @@ void RimEclipseResultDefinition::fieldChangedByUi(const caf::PdmFieldHandle* cha
|
|||||||
{
|
{
|
||||||
if (!m_resultVariable().isEmpty())
|
if (!m_resultVariable().isEmpty())
|
||||||
{
|
{
|
||||||
m_resultType = m_resultTypeUiField();
|
|
||||||
m_selectedSouringTracers = m_selectedSouringTracersUiField();
|
m_selectedSouringTracers = m_selectedSouringTracersUiField();
|
||||||
loadDataAndUpdate();
|
loadDataAndUpdate();
|
||||||
}
|
}
|
||||||
@ -812,7 +811,7 @@ RigFlowDiagResultAddress RimEclipseResultDefinition::flowDiagResAddress() const
|
|||||||
{
|
{
|
||||||
selTracerNames.insert(selectedTracerName.toUtf8().constData());
|
selTracerNames.insert(selectedTracerName.toUtf8().constData());
|
||||||
}
|
}
|
||||||
return RigFlowDiagResultAddress(RIG_NUM_FLOODED_PV, RigFlowDiagResultAddress::PHASE_ALL, selTracerNames);
|
return RigFlowDiagResultAddress(m_resultVariable().toStdString(), RigFlowDiagResultAddress::PHASE_ALL, selTracerNames);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user