mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1916 Plot project tree: Select first case of selection after grouping, and leave new group expanded
This commit is contained in:
parent
29ac350b8f
commit
068bf64717
@ -18,10 +18,14 @@
|
||||
|
||||
#include "RicCreateSummaryCaseCollectionFeature.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
|
||||
#include "RimSummaryCase.h"
|
||||
#include "RimSummaryCaseCollection.h"
|
||||
#include "RimSummaryCaseMainCollection.h"
|
||||
|
||||
#include "RiuMainPlotWindow.h"
|
||||
|
||||
#include "cafPdmObject.h"
|
||||
#include "cafSelectionManager.h"
|
||||
|
||||
@ -66,6 +70,8 @@ void RicCreateSummaryCaseCollectionFeature::onActionTriggered(bool isChecked)
|
||||
|
||||
summaryCaseMainCollection->addCaseCollection(selection);
|
||||
summaryCaseMainCollection->updateConnectedEditors();
|
||||
|
||||
RiaApplication::instance()->getOrCreateAndShowMainPlotWindow()->selectAsCurrentItem(summaryCaseMainCollection->summaryCaseCollections().back()->allSummaryCases().front());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user