mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 22:27:55 -05:00
Refactors selection handling for improved code clarity
Modernize the interface to selection system. Create and return data instead of populating incoming parameters.
This commit is contained in:
1 parent
380f559f0d
commit
ae8446073b
136 files changed
+357
-870
No files matched your search
@@ -44,9 +44,7 @@ bool RicPasteModeledWellPathFeature::isCommandEnabled() const
|
||||
{
|
||||
if ( !modeledWellPathsFromClipboard().empty() ) return true;
|
||||
{
|
||||
std::vector<RimWellPathCollection*> objects;
|
||||
caf::SelectionManager::instance()->objectsByType( &objects );
|
||||
|
||||
const auto objects = caf::SelectionManager::instance()->objectsByType<RimWellPathCollection>();
|
||||
if ( !objects.empty() )
|
||||
{
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user