#1205 Added a none option to Well Alloc Plot Flow Solution menu

This commit is contained in:
Jacob Støren 2017-02-09 13:22:20 +01:00
parent 2ccabc4589
commit dea5c8fc8c

View File

@ -485,6 +485,7 @@ QList<caf::PdmOptionItemInfo> RimWellAllocationPlot::calculateValueOptions(const
for (RimFlowDiagSolution* flowSol : flowSols) for (RimFlowDiagSolution* flowSol : flowSols)
{ {
options.push_back(caf::PdmOptionItemInfo("None", nullptr));
options.push_back(caf::PdmOptionItemInfo(flowSol->userDescription(), flowSol, false, flowSol->uiIcon())); options.push_back(caf::PdmOptionItemInfo(flowSol->userDescription(), flowSol, false, flowSol->uiIcon()));
} }
} }
@ -524,7 +525,8 @@ void RimWellAllocationPlot::fieldChangedByUi(const caf::PdmFieldHandle* changedF
} }
else if ( changedField == &m_wellName else if ( changedField == &m_wellName
|| changedField == &m_case || changedField == &m_case
|| changedField == &m_timeStep) || changedField == &m_timeStep
|| changedField == &m_flowDiagSolution)
{ {
loadDataAndUpdate(); loadDataAndUpdate();
} }