From 10b92b0f97f1381276ce020963aaa8e8a4d83375 Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Mon, 23 Oct 2023 10:06:05 +0200 Subject: [PATCH] #10744 Hide experimental fault reactivation feature for release. Fixes #10744. --- ApplicationLibCode/Application/RiaPreferences.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ApplicationLibCode/Application/RiaPreferences.cpp b/ApplicationLibCode/Application/RiaPreferences.cpp index d1e99b9b80..b2f8923036 100644 --- a/ApplicationLibCode/Application/RiaPreferences.cpp +++ b/ApplicationLibCode/Application/RiaPreferences.cpp @@ -435,7 +435,10 @@ void RiaPreferences::defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& #ifdef USE_ODB_API else if ( uiConfigName == RiaPreferences::tabNameGeomech() ) { - m_geoMechPreferences()->appendItems( uiOrdering ); + if ( RiaApplication::enableDevelopmentFeatures() ) + { + m_geoMechPreferences()->appendItems( uiOrdering ); + } } #endif else if ( uiConfigName == RiaPreferences::tabNameImportExport() ) @@ -613,7 +616,10 @@ QStringList RiaPreferences::tabNames() names << tabNamePlotting(); names << tabNameScripting(); #ifdef USE_ODB_API - names << tabNameGeomech(); + if ( RiaApplication::enableDevelopmentFeatures() ) + { + names << tabNameGeomech(); + } #endif names << tabNameImportExport();