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:
@@ -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