mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-08 07:15:13 -06:00
Release 2023.06
This commit is contained in:
1 parent
a7108f0a09
commit
77bf792b1a
1390 files changed
+66974
-11511
No files matched your search
+4
-6
@@ -59,12 +59,12 @@ void RicAppendIntersectionBoxFeature::onActionTriggered( bool isChecked )
|
||||
coll->appendIntersectionBoxAndUpdate( intersectionBox );
|
||||
|
||||
intersectionBox->setToDefaultSizeBox();
|
||||
intersectionBox->updateConnectedEditors();
|
||||
|
||||
coll->updateConnectedEditors();
|
||||
Riu3DMainWindowTools::selectAsCurrentItem( intersectionBox );
|
||||
|
||||
RimGridView* rimView = nullptr;
|
||||
coll->firstAncestorOrThisOfTypeAsserted( rimView );
|
||||
RimGridView* rimView = coll->firstAncestorOrThisOfTypeAsserted<RimGridView>();
|
||||
rimView->showGridCells( false );
|
||||
}
|
||||
}
|
||||
@@ -83,14 +83,12 @@ void RicAppendIntersectionBoxFeature::setupActionLook( QAction* actionToSetup )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimIntersectionCollection* RicAppendIntersectionBoxFeature::intersectionCollection()
|
||||
{
|
||||
RimIntersectionCollection* intersectionBoxColl = nullptr;
|
||||
|
||||
std::vector<caf::PdmObjectHandle*> selectedObjects;
|
||||
caf::SelectionManager::instance()->objectsByType( &selectedObjects );
|
||||
if ( selectedObjects.size() == 1 )
|
||||
{
|
||||
selectedObjects[0]->firstAncestorOrThisOfType( intersectionBoxColl );
|
||||
return selectedObjects[0]->firstAncestorOrThisOfType<RimIntersectionCollection>();
|
||||
}
|
||||
|
||||
return intersectionBoxColl;
|
||||
return nullptr;
|
||||
}
|
||||
Reference in new issue
Block a user