mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
#3415 Fix reload of formation name table when reloading formations.
This commit is contained in:
parent
0c05c93a72
commit
2e5310bf38
@ -23,6 +23,7 @@
|
||||
#include "RimCase.h"
|
||||
#include "RimTools.h"
|
||||
#include "Rim3dView.h"
|
||||
#include "RimWellLogTrack.h"
|
||||
|
||||
#include "cafPdmUiFilePathEditor.h"
|
||||
|
||||
@ -126,6 +127,17 @@ void RimFormationNames::updateConnectedViews()
|
||||
if (caseObj)
|
||||
{
|
||||
caseObj->updateFormationNamesData();
|
||||
|
||||
std::vector<RimWellLogTrack*> tracks;
|
||||
caseObj->objectsWithReferringPtrFieldsOfType(tracks);
|
||||
for (RimWellLogTrack* track : tracks)
|
||||
{
|
||||
// The track may be referring to the case for other reasons than formations.
|
||||
if (track->formationNamesCase() == caseObj)
|
||||
{
|
||||
track->loadDataAndUpdate(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user