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