mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2303 Formations: Update well path only when formation source changes
This commit is contained in:
parent
fc2e638ba2
commit
cf12e5ae36
@ -242,7 +242,7 @@ void RimWellRftPlot::updateFormationsOnPlot() const
|
||||
|
||||
RimCase* formationNamesCase = m_wellLogPlot->trackByIndex(0)->formationNamesCase();
|
||||
|
||||
if ( !formationNamesCase )
|
||||
if (!formationNamesCase)
|
||||
{
|
||||
/// Set default case. Todo : Use the first of the selected cases in the plot
|
||||
std::vector<RimCase*> cases;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user