mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
caf: Rename of SelectionRole to SelectionLevel and
CURRENT to FIRST_LEVEL Replace use of SelectionLevel enum as argument with int
This commit is contained in:
@@ -41,7 +41,7 @@ bool RicNewWellPathListTargetFeature::isCommandEnabled()
|
||||
}
|
||||
{
|
||||
std::vector<RimWellPathTarget*> objects;
|
||||
caf::SelectionManager::instance()->objectsByType(&objects, caf::SelectionManager::CURRENT);
|
||||
caf::SelectionManager::instance()->objectsByType(&objects, caf::SelectionManager::FIRST_LEVEL);
|
||||
|
||||
if ( objects.size() > 0 )
|
||||
{
|
||||
@@ -58,7 +58,7 @@ bool RicNewWellPathListTargetFeature::isCommandEnabled()
|
||||
void RicNewWellPathListTargetFeature::onActionTriggered(bool isChecked)
|
||||
{
|
||||
std::vector<RimWellPathTarget*> targets;
|
||||
caf::SelectionManager::instance()->objectsByType(&targets, caf::SelectionManager::CURRENT);
|
||||
caf::SelectionManager::instance()->objectsByType(&targets, caf::SelectionManager::FIRST_LEVEL);
|
||||
if (targets.size() > 0)
|
||||
{
|
||||
auto firstTarget = targets.front();
|
||||
|
||||
Reference in New Issue
Block a user