#2303 Formations: Update well path only when formation source changes

This commit is contained in:
Rebecca Cox 2018-01-05 08:36:17 +01:00
parent fc2e638ba2
commit cf12e5ae36
2 changed files with 11 additions and 10 deletions

View File

@ -260,7 +260,8 @@ void RimWellLogTrack::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
}
else if (changedField == &m_showFormations || changedField == &m_formationSource)
{
bool validWellPathChosen = false;
if (changedField == &m_formationSource && m_formationSource == WELL_PICK_FILTER)
{
std::vector<RimWellPath*> wellPaths;
RimTools::wellPathWithFormations(&wellPaths);
for (RimWellPath* wellPath : wellPaths)
@ -271,6 +272,7 @@ void RimWellLogTrack::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
break;
}
}
}
loadDataAndUpdate();
RimWellRftPlot* rftPlot(nullptr);
@ -284,8 +286,8 @@ void RimWellLogTrack::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
else
{
RimWellPltPlot* pltPlot(nullptr);
firstAncestorOrThisOfType(pltPlot);
if (pltPlot)
{
pltPlot->updateConnectedEditors();
@ -362,7 +364,6 @@ QList<caf::PdmOptionItemInfo> RimWellLogTrack::calculateValueOptions(const caf::
if (fieldNeedingOptions == &m_formationWellPathForSourceCase)
{
RimTools::wellPathOptionItems(&options);
options.push_front(caf::PdmOptionItemInfo("None", nullptr));
}
else if (fieldNeedingOptions == &m_formationWellPathForSourceWellPath)