diff --git a/ApplicationCode/Commands/OperationsUsingObjReferences/RicPasteEclipseViewsFeature.cpp b/ApplicationCode/Commands/OperationsUsingObjReferences/RicPasteEclipseViewsFeature.cpp index 1825d94b93..4b522d8d29 100644 --- a/ApplicationCode/Commands/OperationsUsingObjReferences/RicPasteEclipseViewsFeature.cpp +++ b/ApplicationCode/Commands/OperationsUsingObjReferences/RicPasteEclipseViewsFeature.cpp @@ -93,12 +93,7 @@ void RicPasteEclipseViewsFeature::onActionTriggered(bool isChecked) rimReservoirView->name = nameOfCopy; eclipseCase->reservoirViews().push_back(rimReservoirView); - // Delete all wells to be able to copy/paste between cases, as the wells can be different between cases - // Wells are read from file in loadDataAndUpdate -> syncronizeWellsWithResults - rimReservoirView->wellCollection()->wells().deleteAllChildObjects(); - rimReservoirView->setEclipseCase(eclipseCase); - rimReservoirView->loadDataAndUpdate(); // Resolve references after reservoir view has been inserted into Rim structures // Intersections referencing a well path/ simulation well requires this @@ -106,6 +101,8 @@ void RicPasteEclipseViewsFeature::onActionTriggered(bool isChecked) rimReservoirView->initAfterReadRecursively(); rimReservoirView->resolveReferencesRecursively(); + rimReservoirView->loadDataAndUpdate(); + caf::PdmDocument::updateUiIconStateRecursively(rimReservoirView); eclipseCase->updateConnectedEditors();