mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1840 Summary case: Delete a summary collection with or without its contents
This commit is contained in:
@@ -37,14 +37,7 @@ bool RicCreateSummaryCaseCollectionFeature::isCommandEnabled()
|
||||
std::vector<RimSummaryCase*> selection;
|
||||
caf::SelectionManager::instance()->objectsByType(&selection);
|
||||
|
||||
RimSummaryCaseCollection* summaryCaseCollection = nullptr;
|
||||
|
||||
if (selection.size() > 0)
|
||||
{
|
||||
selection[0]->firstAncestorOrThisOfType(summaryCaseCollection);
|
||||
}
|
||||
|
||||
return (selection.size() > 0 && !summaryCaseCollection);
|
||||
return (selection.size() > 0);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user