Fix cloning of GeoMech views from Python

This commit is contained in:
Gaute Lindkvist
2020-02-21 08:57:26 +01:00
parent 699a3f9b34
commit a3a7b6029e
@@ -58,7 +58,7 @@ RicfCommandResponse RicfCloneView::execute()
{
RimGeoMechCase* geoMechCase = geoMechView->geoMechCase();
RimGeoMechView* newGeoMechView = geoMechCase->createCopyAndAddView( geoMechView );
view->loadDataAndUpdate();
newGeoMechView->loadDataAndUpdate();
newViewId = newGeoMechView->id();
geoMechCase->updateConnectedEditors();
Riu3DMainWindowTools::setExpanded( view );