#1840 Summary case: Delete a summary collection with or without its contents

This commit is contained in:
Rebecca Cox committed 2017-09-11 10:45:26 +02:00
1 parent 788ac2c8a8
commit c60465b380
14 files changed
+273 -68

No files matched your search

@@ -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);
}
//--------------------------------------------------------------------------------------------------