mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5327 Well Measurements : Improve context menus
This commit is contained in:
@@ -150,5 +150,11 @@ RimWellPathCollection* RicImportWellMeasurementsFeature::selectedWellPathCollect
|
||||
return objects[0];
|
||||
}
|
||||
|
||||
auto measurementColl = caf::SelectionManager::instance()->selectedItemAncestorOfType<RimWellMeasurementCollection>();
|
||||
if ( measurementColl )
|
||||
{
|
||||
return caf::SelectionManager::instance()->selectedItemAncestorOfType<RimWellPathCollection>();
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user