diff options
Diffstat (limited to 'indra/newview/llfloaterbuyland.cpp')
-rw-r--r-- | indra/newview/llfloaterbuyland.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llfloaterbuyland.cpp b/indra/newview/llfloaterbuyland.cpp index 8223e89b64..6333238c26 100644 --- a/indra/newview/llfloaterbuyland.cpp +++ b/indra/newview/llfloaterbuyland.cpp @@ -1305,7 +1305,11 @@ void LLFloaterBuyLandUI::refreshUI() agrees_to_covenant = check->get(); } +#ifndef STINSON_ADULT_CHECK_HACK + getChildView("buy_btn")->setEnabled(gSavedSettings.getBOOL("AdultCheckEnablePurchse") || (mCanBuy && mSiteValid && willHaveEnough && !mTransaction && agrees_to_covenant)); +#else // STINSON_ADULT_CHECK_HACK getChildView("buy_btn")->setEnabled(mCanBuy && mSiteValid && willHaveEnough && !mTransaction && agrees_to_covenant); +#endif // STINSON_ADULT_CHECK_HACK } void LLFloaterBuyLandUI::startBuyPreConfirm() |