mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-27 15:41:00 -05:00
Release 2025.09.0
This commit is contained in:
1 parent
c33402f5ea
commit
917136fec8
1053 files changed
+61952
-11833
No files matched your search
@@ -33,9 +33,7 @@ CAF_CMD_SOURCE_INIT( RicCreateSummaryEnsembleFeature, "RicCreateSummaryEnsembleF
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RicCreateSummaryEnsembleFeature::isCommandEnabled() const
|
||||
{
|
||||
std::vector<RimSummaryCase*> selection;
|
||||
caf::SelectionManager::instance()->objectsByType( &selection );
|
||||
|
||||
const auto selection = caf::SelectionManager::instance()->objectsByType<RimSummaryCase>();
|
||||
return !selection.empty();
|
||||
}
|
||||
|
||||
@@ -44,8 +42,7 @@ bool RicCreateSummaryEnsembleFeature::isCommandEnabled() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicCreateSummaryEnsembleFeature::onActionTriggered( bool isChecked )
|
||||
{
|
||||
std::vector<RimSummaryCase*> selection;
|
||||
caf::SelectionManager::instance()->objectsByType( &selection );
|
||||
const auto selection = caf::SelectionManager::instance()->objectsByType<RimSummaryCase>();
|
||||
if ( selection.empty() ) return;
|
||||
|
||||
RicImportEnsembleFeature::createSummaryEnsemble( selection );
|
||||
|
||||
Reference in new issue
Block a user