Skip to content

Commit

Permalink
Select the new view to make sure RiaApplication::setActiveReservoirV…
Browse files Browse the repository at this point in the history
…iew() is called
  • Loading branch information
magnesj committed Nov 10, 2023
1 parent ee4c836 commit 32a878a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ApplicationLibCode/Commands/RicNewViewFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@

#include "RicNewViewFeature.h"

#include "RiaLogging.h"

#include "Rim3dView.h"
#include "RimEclipseCase.h"
#include "RimEclipseContourMapView.h"
#include "RimEclipseView.h"
#include "RimGeoMechCase.h"
#include "RimGeoMechView.h"

#include "RiaLogging.h"
#include "Riu3DMainWindowTools.h"

#include "cafSelectionManager.h"
Expand All @@ -45,6 +46,9 @@ void RicNewViewFeature::addReservoirView( RimEclipseCase* eclipseCase, RimGeoMec
if ( newView )
{
Riu3DMainWindowTools::setExpanded( newView );

// Select the new view to make sure RiaApplication::setActiveReservoirView() is called
Riu3DMainWindowTools::selectAsCurrentItem( newView );
}
}

Expand Down

0 comments on commit 32a878a

Please sign in to comment.