Remove wrong error message on successfully cloning views from Python.

This commit is contained in:
Gaute Lindkvist 2020-01-20 08:37:57 +01:00
parent 2adefbcb04
commit 4b9ea05033

View File

@ -49,8 +49,8 @@ RicfCommandResponse RicfCloneView::execute()
{
RimEclipseCase* eclipseCase = eclipseView->eclipseCase();
RimEclipseView* newEclipseView = eclipseCase->createCopyAndAddView( eclipseView );
newViewId = newEclipseView->id();
newEclipseView->loadDataAndUpdate();
newViewId = newEclipseView->id();
eclipseCase->updateConnectedEditors();
Riu3DMainWindowTools::setExpanded( newEclipseView );
}
@ -58,8 +58,8 @@ RicfCommandResponse RicfCloneView::execute()
{
RimGeoMechCase* geoMechCase = geoMechView->geoMechCase();
RimGeoMechView* newGeoMechView = geoMechCase->createCopyAndAddView( geoMechView );
newViewId = newGeoMechView->id();
view->loadDataAndUpdate();
newViewId = newGeoMechView->id();
geoMechCase->updateConnectedEditors();
Riu3DMainWindowTools::setExpanded( view );
}