From 2e3d4e279310907d3dea558c1fbc182bfb52149c Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Fri, 12 Apr 2024 14:29:41 +0200 Subject: [PATCH] Show case option when not in the tree. --- ApplicationLibCode/ProjectDataModel/RimEclipseView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ApplicationLibCode/ProjectDataModel/RimEclipseView.cpp b/ApplicationLibCode/ProjectDataModel/RimEclipseView.cpp index ac89e2a377..5500a07395 100644 --- a/ApplicationLibCode/ProjectDataModel/RimEclipseView.cpp +++ b/ApplicationLibCode/ProjectDataModel/RimEclipseView.cpp @@ -1895,7 +1895,8 @@ void RimEclipseView::defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& { Rim3dView::defineUiOrdering( uiConfigName, uiOrdering ); - uiOrdering.add( &m_eclipseCase ); + // Only show case option when not under a case in the project tree. + if ( !firstAncestorOrThisOfType() ) uiOrdering.add( &m_eclipseCase ); caf::PdmUiGroup* cellGroup = uiOrdering.addNewGroup( "Cell Visibility" ); cellGroup->add( &m_showInactiveCells );