mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#339) Made sure that a new view is expanded in the project tree view
This commit is contained in:
parent
c5606a46aa
commit
8902c13525
@ -25,7 +25,10 @@
|
||||
#include "RimEclipseCase.h"
|
||||
#include "RimGeoMechCase.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
#include "cafSelectionManager.h"
|
||||
#include "cafPdmUiTreeView.h"
|
||||
|
||||
#include <QAction>
|
||||
|
||||
@ -47,9 +50,9 @@ bool RicNewViewFeature::isCommandEnabled()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicNewViewFeature::onActionTriggered(bool isChecked)
|
||||
{
|
||||
addReservoirView();
|
||||
RimView* newView = addReservoirView();
|
||||
|
||||
// MODTODO: expand new view when inserted
|
||||
RiuMainWindow::instance()->projectTreeView()->setExpanded(newView, true);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user