mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2331 Update Intersection View List when copying and deleting views
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "RimEclipseCase.h"
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimSimWellInViewCollection.h"
|
||||
#include "Rim2dIntersectionViewCollection.h"
|
||||
|
||||
#include "cafPdmDocument.h"
|
||||
#include "cafPdmObjectGroup.h"
|
||||
@@ -102,6 +103,7 @@ void RicPasteEclipseViewsFeature::onActionTriggered(bool isChecked)
|
||||
rimReservoirView->resolveReferencesRecursively();
|
||||
rimReservoirView->initAfterReadRecursively();
|
||||
|
||||
eclipseCase->intersectionViewCollection()->syncFromExistingIntersections(false);
|
||||
rimReservoirView->loadDataAndUpdate();
|
||||
|
||||
caf::PdmDocument::updateUiIconStateRecursively(rimReservoirView);
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
#include "cafPdmReferenceHelper.h"
|
||||
#include "cafPdmUiFieldHandle.h"
|
||||
#include "cafSelectionManager.h"
|
||||
#include "Rim2dIntersectionViewCollection.h"
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -132,6 +133,14 @@ void RicDeleteItemExec::redo()
|
||||
crossSectionColl->syncronize2dIntersectionViews();
|
||||
view->scheduleCreateDisplayModelAndRedraw();
|
||||
}
|
||||
else
|
||||
{
|
||||
RimCase* parentCase = dynamic_cast<RimCase*>(parentObj);
|
||||
if ( parentCase ) // A view was deleted. Need to update the list of intersection views
|
||||
{
|
||||
parentCase->intersectionViewCollection()->syncFromExistingIntersections(true);
|
||||
}
|
||||
}
|
||||
|
||||
// SimWell Fractures
|
||||
RimSimWellInView* simWell;
|
||||
|
||||
Reference in New Issue
Block a user