More precise view id

This commit is contained in:
Gaute Lindkvist
2019-10-18 15:32:20 +02:00
parent c578a43b53
commit aef0e0a70f
21 changed files with 36 additions and 37 deletions

View File

@@ -198,7 +198,6 @@ void RimGeoMechCase::reloadDataAndUpdate()
RimGeoMechView* RimGeoMechCase::createAndAddReservoirView()
{
RimGeoMechView* gmv = new RimGeoMechView();
RiaApplication::instance()->project()->assignViewIdToView( gmv );
gmv->setGeoMechCase( this );
@@ -215,7 +214,6 @@ RimGeoMechView* RimGeoMechCase::createCopyAndAddView( const RimGeoMechView* sour
sourceView->xmlCapability()->copyByXmlSerialization( caf::PdmDefaultObjectFactory::instance() ) );
CVF_ASSERT( rimGeoMechView );
RiaApplication::instance()->project()->assignViewIdToView( rimGeoMechView );
rimGeoMechView->setGeoMechCase( this );
caf::PdmDocument::updateUiIconStateRecursively( rimGeoMechView );