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));