From 0bccc9d5188313d225a96ddad3e422e23c07ca75 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Thu, 26 Nov 2020 20:44:03 +0100 Subject: [PATCH] FIRE-29819: Disable the show grid selection checkbox in prefs for OpenSim builds if necessary --- indra/newview/llfloaterpreference.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index aeddc0b7ec..7b41808c94 100644 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -815,7 +815,7 @@ BOOL LLFloaterPreference::postBuild() // [/SL:KB] // -#if !defined(OPENSIM) || defined(SINGLEGRID)// +#if !defined(OPENSIM) || defined(SINGLEGRID) // Hide the opensim tab if opensim isn't enabled LLTabContainer* tab_container = getChild("pref core"); if (tab_container) @@ -824,9 +824,11 @@ BOOL LLFloaterPreference::postBuild() if (opensim_panel) tab_container->removeTabPanel(opensim_panel); } +#endif +#if defined(OPENSIM) && !defined(SINGLEGRID) + childSetEnabled("show_grid_selection_check", !gSavedSettings.getBOOL("FSOpenSimAlwaysForceShowGrid")); +#endif // -#endif // OPENSIM // - // Pie menu gSavedSettings.getControl("OverridePieColors")->getSignal()->connect(boost::bind(&LLFloaterPreference::onPieColorsOverrideChanged, this));