#7727 Well Path : Simplify access to all well paths

This commit is contained in:
Magne Sjaastad
2021-05-27 11:25:13 +02:00
parent 087cf41773
commit afb293db52
6 changed files with 9 additions and 24 deletions

View File

@@ -124,7 +124,7 @@ bool RicDeleteSubItemsFeature::hasDeletableSubItems( caf::PdmUiItem* uiItem )
{
auto collection = dynamic_cast<RimWellPathCollection*>( uiItem );
if ( collection && !collection->topLevelWellPaths().empty() )
if ( collection && !collection->allWellPaths().empty() )
{
return true;
}