mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use icon update functions from pdmDocument
This commit is contained in:
parent
786f3bbd9c
commit
af89f3e45e
@ -138,7 +138,7 @@ RimReservoirView* RimCase::createAndAddReservoirView()
|
||||
RimReservoirView* riv = new RimReservoirView();
|
||||
riv->setEclipseCase(this);
|
||||
|
||||
caf::PdmDocument::initAfterReadTraversal(riv);
|
||||
caf::PdmDocument::updateUiIconStateRecursively(riv);
|
||||
|
||||
size_t i = reservoirViews().size();
|
||||
riv->name = QString("View %1").arg(i + 1);
|
||||
|
@ -678,7 +678,7 @@ void RimUiTreeModelPdm::addObjects(const QModelIndex& itemIndex, caf::PdmObjectG
|
||||
RimAnalysisModels* analysisModels = (activeOilField) ? activeOilField->analysisModels() : NULL;
|
||||
if (analysisModels) analysisModels->insertCaseInCaseGroup(gridCaseGroup, rimResultReservoir);
|
||||
|
||||
caf::PdmObjectGroup::initAfterReadTraversal(rimResultReservoir);
|
||||
caf::PdmDocument::updateUiIconStateRecursively(rimResultReservoir);
|
||||
|
||||
{
|
||||
QModelIndex rootIndex = getModelIndexFromPdmObject(gridCaseGroup->caseCollection());
|
||||
@ -723,7 +723,7 @@ void RimUiTreeModelPdm::addObjects(const QModelIndex& itemIndex, caf::PdmObjectG
|
||||
// Delete all wells to be able to copy/paste between cases, as the wells differ between cases
|
||||
rimReservoirView->wellCollection()->wells().deleteAllChildObjects();
|
||||
|
||||
caf::PdmObjectGroup::initAfterReadTraversal(rimReservoirView);
|
||||
caf::PdmDocument::updateUiIconStateRecursively(rimReservoirView);
|
||||
|
||||
rimReservoirView->loadDataAndUpdate();
|
||||
rimCase->reservoirViews().push_back(rimReservoirView);
|
||||
|
Loading…
Reference in New Issue
Block a user