mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1840 Summary case: Rename and code clean up
This commit is contained in:
@@ -47,9 +47,10 @@ void RicCreateSummaryCaseCollectionFeature::onActionTriggered(bool isChecked)
|
||||
{
|
||||
std::vector<RimSummaryCase*> selection;
|
||||
caf::SelectionManager::instance()->objectsByType(&selection);
|
||||
if (selection.size() == 0) return;
|
||||
|
||||
RimSummaryCaseMainCollection* summaryCaseMainCollection = nullptr;
|
||||
selection.at(0)->firstAncestorOrThisOfTypeAsserted(summaryCaseMainCollection);
|
||||
selection[0]->firstAncestorOrThisOfTypeAsserted(summaryCaseMainCollection);
|
||||
|
||||
summaryCaseMainCollection->addCaseCollection(selection);
|
||||
summaryCaseMainCollection->updateConnectedEditors();
|
||||
|
||||
Reference in New Issue
Block a user